summaryrefslogtreecommitdiff
path: root/std/fs/exists_test.ts
diff options
context:
space:
mode:
authorTim Reichen <timreichen@users.noreply.github.com>2020-10-26 16:03:30 +0100
committerGitHub <noreply@github.com>2020-10-26 16:03:30 +0100
commitae86cbb551f7b88f83d73a447411f753485e49e2 (patch)
tree312231d858369a0091b23e6310ba82b8d97f57cc /std/fs/exists_test.ts
parent305a9c04ba60630f9708b681cfebb522a6110cc3 (diff)
rename(std/testing): rename assert*Contains to assert*Includes (#7951)
This commit renames two assertion functions to better align with JS API: - assertStringContains -> assertStringIncludes - assertArrayContains -> assertArrayIncludes
Diffstat (limited to 'std/fs/exists_test.ts')
-rw-r--r--std/fs/exists_test.ts4
1 files changed, 2 insertions, 2 deletions
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
}