summaryrefslogtreecommitdiff
path: root/std/http
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/http
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/http')
-rw-r--r--std/http/server_test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/http/server_test.ts b/std/http/server_test.ts
index 76b0bcff9..f26dc63cd 100644
--- a/std/http/server_test.ts
+++ b/std/http/server_test.ts
@@ -10,7 +10,7 @@ import {
assert,
assertEquals,
assertMatch,
- assertStringContains,
+ assertStringIncludes,
assertThrowsAsync,
} from "../testing/asserts.ts";
import {
@@ -498,7 +498,7 @@ Deno.test({
const nread = await conn.read(res);
assert(nread !== null);
const resStr = new TextDecoder().decode(res.subarray(0, nread));
- assertStringContains(resStr, "/hello");
+ assertStringIncludes(resStr, "/hello");
server.close();
await p;
// Client connection should still be open, verify that