Skip to content

Commit 088442e

Browse files
committed
Update tests
1 parent 740955e commit 088442e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/cli_test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const runbook = async (args: string[], config: { cwd: string }) => {
1111
const env = {
1212
WORKING_DIR: config.cwd,
1313
};
14-
const cmd = await $`WORKING_DIR=${config.cwd} runbook ${args}`.env(env).stdout("piped").stderr("piped").noThrow();
14+
const cmd = await $`runbook ${args}`.env(env).stdout("piped").stderr("piped").noThrow();
1515
return cmd;
1616
};
1717

@@ -83,12 +83,12 @@ Deno.test.ignore("diff", async (t) => {
8383

8484
Deno.test("init", async (t) => {
8585
const {dir} = await setup();
86-
const files = (await getAllFiles(dir)).map(f => f.replace(dir, ""));
86+
const files = (await getAllFiles(dir)).map(f => f.replace(dir, "")).sort();
8787
assertEquals(files, [
8888
"/runbooks/binder/_template-deno.ipynb",
8989
"/runbooks/binder/_template-python.ipynb",
9090
"/runbooks/.runbook.json",
91-
])
91+
].sort());
9292
});
9393

9494
Deno.test("list", async (t) => {

0 commit comments

Comments
 (0)