You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
open TestFramework;
|
|
|
|
|
|
|
|
describe("Smoke test", ({test, _}) => {
|
|
|
|
test("Tests run!", ({expect}) =>
|
|
|
|
expect.int(1).toBe(1)
|
|
|
|
);
|
|
|
|
|
|
|
|
test("Get version", ({expect}) => {
|
|
|
|
let version = run([|"--version"|]);
|
|
|
|
expect.string(version |> String.trim).toMatch("^\\d+.\\d+.\\d+$");
|
|
|
|
});
|
|
|
|
|
|
|
|
test("env", ({expect}) => {
|
|
|
|
let env = run([|"env", "--shell=bash"|]) |> redactSfwRoot;
|
|
|
|
expect.string(env).toMatchSnapshot();
|
|
|
|
});
|
|
|
|
});
|