diff options
Diffstat (limited to 'tests/unit_node/fs_test.ts')
-rw-r--r-- | tests/unit_node/fs_test.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/unit_node/fs_test.ts b/tests/unit_node/fs_test.ts index 4a8ef89f3..caa266ef2 100644 --- a/tests/unit_node/fs_test.ts +++ b/tests/unit_node/fs_test.ts @@ -9,6 +9,8 @@ import { mkdtempSync, promises, readFileSync, + Stats, + statSync, writeFileSync, } from "node:fs"; import { constants as fsPromiseConstants, cp } from "node:fs/promises"; @@ -98,6 +100,15 @@ Deno.test( ); Deno.test( + "[node/fs statSync] instanceof fs.Stats", + () => { + const stat = statSync("tests/testdata/assets/fixture.json"); + assert(stat); + assert(stat instanceof Stats); + }, +); + +Deno.test( "[node/fs/promises cp] copy file", async () => { const src = mkdtempSync(join(tmpdir(), "foo-")) + "/test.txt"; |