diff options
Diffstat (limited to 'cli/js/tests')
-rw-r--r-- | cli/js/tests/read_file_test.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/js/tests/read_file_test.ts b/cli/js/tests/read_file_test.ts index 1b709b1f4..0d3cdf422 100644 --- a/cli/js/tests/read_file_test.ts +++ b/cli/js/tests/read_file_test.ts @@ -57,3 +57,9 @@ unitTest({ perms: { read: false } }, async function readFilePerm(): Promise< } assert(caughtError); }); + +unitTest({ perms: { read: true } }, function readFileSyncLoop(): void { + for (let i = 0; i < 256; i++) { + Deno.readFileSync("cli/tests/fixture.json"); + } +}); |