diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-05-08 16:12:16 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-05-15 21:14:17 -0400 |
commit | e02d8bcf18f8170a41439f4ffa416d26c5846b6e (patch) | |
tree | ba4783fe2406a744e9c2d84e110802386f348ac0 /js/read_dir_test.ts | |
parent | 7d25c559fc841816ac68282ba67e8f0c1fc069bd (diff) |
Remove FileInfo.path
Diffstat (limited to 'js/read_dir_test.ts')
-rw-r--r-- | js/read_dir_test.ts | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/js/read_dir_test.ts b/js/read_dir_test.ts index 55badd0db..3e11df9fe 100644 --- a/js/read_dir_test.ts +++ b/js/read_dir_test.ts @@ -3,8 +3,6 @@ import { testPerm, assert, assertEquals } from "./test_util.ts"; type FileInfo = Deno.FileInfo; -const isWin = Deno.build.os === "win"; - function assertSameContent(files: FileInfo[]): void { let counter = 0; @@ -15,11 +13,6 @@ function assertSameContent(files: FileInfo[]): void { } if (file.name === "002_hello.ts") { - if (isWin) { - assert(file.path.endsWith(`tests\\${file.name}`)); - } else { - assert(file.path.endsWith(`tests/${file.name}`)); - } assertEquals(file.mode!, Deno.statSync(`tests/${file.name}`).mode!); counter++; } |