diff options
Diffstat (limited to 'cli/js/os_test.ts')
-rw-r--r-- | cli/js/os_test.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/js/os_test.ts b/cli/js/os_test.ts index 93ba18ae6..6d9309000 100644 --- a/cli/js/os_test.ts +++ b/cli/js/os_test.ts @@ -248,9 +248,8 @@ testPerm({ env: true }, function getDir(): void { for (const r of s.runtime) { if (Deno.build.os !== r.os) continue; if (r.shouldHaveValue) { - assertNotEquals(Deno.dir(s.kind), ""); - } else { - assertEquals(Deno.dir(s.kind), null); + const d = Deno.dir(s.kind); + assert(d.length > 0); } } } |