summaryrefslogtreecommitdiff
path: root/http/file_server_test.ts
diff options
context:
space:
mode:
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();
}