diff --git a/mod.test.ts b/mod.test.ts index a4b3a2c..578e7aa 100644 --- a/mod.test.ts +++ b/mod.test.ts @@ -1905,12 +1905,17 @@ Deno.test("cd", () => { }); Deno.test("cat", async () => { - await withTempDir(async () => { + await withTempDir(async (tempDir) => { await Deno.writeTextFile("hello", "hello world"); assertEquals( await $`cat hello`.text(), "hello world", ); + assertEquals( + // absolute path + await $`cat ${tempDir.join("hello")}`.text(), + "hello world", + ); await Deno.writeTextFile("hello2", "hello world2"); assertEquals( await $`cat hello hello2`.text(),