diff options
Diffstat (limited to 'std/fs')
-rw-r--r-- | std/fs/empty_dir_test.ts | 3 | ||||
-rw-r--r-- | std/fs/exists_test.ts | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/std/fs/empty_dir_test.ts b/std/fs/empty_dir_test.ts index 77e98c0ce..b9145767e 100644 --- a/std/fs/empty_dir_test.ts +++ b/std/fs/empty_dir_test.ts @@ -2,6 +2,7 @@ import { test } from "../testing/mod.ts"; import { assertEquals, + assertStrContains, assertThrows, assertThrowsAsync } from "../testing/asserts.ts"; @@ -227,7 +228,7 @@ test(async function emptyDirPermission(): Promise<void> { const output = await Deno.readAll(stdout); - assertEquals(new TextDecoder().decode(output), s.output); + assertStrContains(new TextDecoder().decode(output), s.output); } } catch (err) { await Deno.remove(testfolder, { recursive: true }); diff --git a/std/fs/exists_test.ts b/std/fs/exists_test.ts index b8c968a02..c7c7dc54e 100644 --- a/std/fs/exists_test.ts +++ b/std/fs/exists_test.ts @@ -1,6 +1,6 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { test } from "../testing/mod.ts"; -import { assertEquals } from "../testing/asserts.ts"; +import { assertEquals, assertStrContains } from "../testing/asserts.ts"; import * as path from "../path/mod.ts"; import { exists, existsSync } from "./exists.ts"; @@ -134,7 +134,7 @@ test(async function existsPermission(): Promise<void> { const output = await Deno.readAll(stdout); - assertEquals(new TextDecoder().decode(output), s.output); + assertStrContains(new TextDecoder().decode(output), s.output); } // done |