summaryrefslogtreecommitdiff
path: root/std/fs
diff options
context:
space:
mode:
Diffstat (limited to 'std/fs')
-rw-r--r--std/fs/empty_dir_test.ts4
-rw-r--r--std/fs/exists_test.ts4
-rw-r--r--std/fs/expand_glob_test.ts4
3 files changed, 6 insertions, 6 deletions
diff --git a/std/fs/empty_dir_test.ts b/std/fs/empty_dir_test.ts
index 851fe37b9..6c3406115 100644
--- a/std/fs/empty_dir_test.ts
+++ b/std/fs/empty_dir_test.ts
@@ -2,7 +2,7 @@
import {
assert,
assertEquals,
- assertStringContains,
+ assertStringIncludes,
assertThrows,
assertThrowsAsync,
} from "../testing/asserts.ts";
@@ -231,7 +231,7 @@ for (const s of scenes) {
assert(p.stdout);
const output = await p.output();
p.close();
- assertStringContains(new TextDecoder().decode(output), s.output);
+ assertStringIncludes(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 f4088e03a..6619cce10 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, assertStringContains } from "../testing/asserts.ts";
+import { assertEquals, assertStringIncludes } 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();
- assertStringContains(new TextDecoder().decode(output), s.output);
+ assertStringIncludes(new TextDecoder().decode(output), s.output);
});
// done
}
diff --git a/std/fs/expand_glob_test.ts b/std/fs/expand_glob_test.ts
index 39235906b..768c6465a 100644
--- a/std/fs/expand_glob_test.ts
+++ b/std/fs/expand_glob_test.ts
@@ -3,7 +3,7 @@ import { decode } from "../encoding/utf8.ts";
import {
assert,
assertEquals,
- assertStringContains,
+ assertStringIncludes,
} from "../testing/asserts.ts";
import {
fromFileUrl,
@@ -126,7 +126,7 @@ Deno.test("expandGlobPermError", async function (): Promise<void> {
});
assertEquals(await p.status(), { code: 1, success: false });
assertEquals(decode(await p.output()), "");
- assertStringContains(
+ assertStringIncludes(
decode(await p.stderrOutput()),
"Uncaught PermissionDenied",
);