summaryrefslogtreecommitdiff
path: root/http/file_server_test.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-03-06 19:42:24 -0500
committerGitHub <noreply@github.com>2019-03-06 19:42:24 -0500
commitcaa383a5835c167bf6657120ad3c1c5009670785 (patch)
tree2f350928e23e472278b9c3ebd798f13169b6d581 /http/file_server_test.ts
parente36edfdb3fd4709358a5f499f13cfe3d53c2b4f7 (diff)
Rename assertEq to assertEquals (denoland/deno_std#242)
After some discussion it was found that assertEquals is more common in JS (vs assertEqual, assertEq) and sounds better in the negated form: assertNotEquals vs assertNE. Original: https://github.com/denoland/deno_std/commit/4cf39d4a1420b8153cd78d03d03ef843607ae506
Diffstat (limited to 'http/file_server_test.ts')
-rw-r--r--http/file_server_test.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/http/file_server_test.ts b/http/file_server_test.ts
index 7f2dfd278..15f052e6e 100644
--- a/http/file_server_test.ts
+++ b/http/file_server_test.ts
@@ -2,7 +2,7 @@
const { readFile, run } = Deno;
import { test } from "../testing/mod.ts";
-import { assert, assertEq } from "../testing/asserts.ts";
+import { assert, assertEquals } from "../testing/asserts.ts";
import { BufReader } from "../io/bufio.ts";
import { TextProtoReader } from "../textproto/mod.ts";
@@ -36,12 +36,12 @@ test(async function serveFile() {
const res = await fetch("http://localhost:4500/azure-pipelines.yml");
assert(res.headers.has("access-control-allow-origin"));
assert(res.headers.has("access-control-allow-headers"));
- assertEq(res.headers.get("content-type"), "text/yaml; charset=utf-8");
+ assertEquals(res.headers.get("content-type"), "text/yaml; charset=utf-8");
const downloadedFile = await res.text();
const localFile = new TextDecoder().decode(
await readFile("./azure-pipelines.yml")
);
- assertEq(downloadedFile, localFile);
+ assertEquals(downloadedFile, localFile);
} finally {
killFileServer();
}
@@ -66,7 +66,7 @@ test(async function serveFallback() {
const res = await fetch("http://localhost:4500/badfile.txt");
assert(res.headers.has("access-control-allow-origin"));
assert(res.headers.has("access-control-allow-headers"));
- assertEq(res.status, 404);
+ assertEquals(res.status, 404);
} finally {
killFileServer();
}