diff options
Diffstat (limited to 'std/fs')
-rw-r--r-- | std/fs/empty_dir_test.ts | 4 | ||||
-rw-r--r-- | std/fs/exists_test.ts | 4 | ||||
-rw-r--r-- | std/fs/expand_glob_test.ts | 8 |
3 files changed, 10 insertions, 6 deletions
diff --git a/std/fs/empty_dir_test.ts b/std/fs/empty_dir_test.ts index aff16f6a5..e0e4c58fa 100644 --- a/std/fs/empty_dir_test.ts +++ b/std/fs/empty_dir_test.ts @@ -2,7 +2,7 @@ import { assert, assertEquals, - assertStrContains, + assertStringContains, assertThrows, assertThrowsAsync, } from "../testing/asserts.ts"; @@ -228,7 +228,7 @@ for (const s of scenes) { assert(p.stdout); const output = await p.output(); p.close(); - assertStrContains(new TextDecoder().decode(output), s.output); + assertStringContains(new TextDecoder().decode(output), s.output); } catch (err) { await Deno.remove(testfolder, { recursive: true }); throw err; diff --git a/std/fs/exists_test.ts b/std/fs/exists_test.ts index 191289d88..8b584d861 100644 --- a/std/fs/exists_test.ts +++ b/std/fs/exists_test.ts @@ -1,5 +1,5 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -import { assertEquals, assertStrContains } from "../testing/asserts.ts"; +import { assertEquals, assertStringContains } from "../testing/asserts.ts"; import * as path from "../path/mod.ts"; import { exists, existsSync } from "./exists.ts"; @@ -130,7 +130,7 @@ for (const s of scenes) { const output = await p.output(); p.close(); - assertStrContains(new TextDecoder().decode(output), s.output); + assertStringContains(new TextDecoder().decode(output), s.output); }); // done } diff --git a/std/fs/expand_glob_test.ts b/std/fs/expand_glob_test.ts index 24885530b..7d60d024e 100644 --- a/std/fs/expand_glob_test.ts +++ b/std/fs/expand_glob_test.ts @@ -1,6 +1,10 @@ const { cwd, execPath, run } = Deno; import { decode } from "../encoding/utf8.ts"; -import { assert, assertEquals, assertStrContains } from "../testing/asserts.ts"; +import { + assert, + assertEquals, + assertStringContains, +} from "../testing/asserts.ts"; import { join, joinGlobs, @@ -122,7 +126,7 @@ Deno.test("expandGlobPermError", async function (): Promise<void> { }); assertEquals(await p.status(), { code: 1, success: false }); assertEquals(decode(await p.output()), ""); - assertStrContains( + assertStringContains( decode(await p.stderrOutput()), "Uncaught PermissionDenied" ); |