summaryrefslogtreecommitdiff
path: root/std/examples/tests/echo_server_test.ts
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2020-06-06 11:43:00 +0800
committerGitHub <noreply@github.com>2020-06-05 23:43:00 -0400
commited5aedc6b4a1d72208649afd8793e288d94021b1 (patch)
treef5039c94c2a4d03182a5b97dbc0471a1b3123eb1 /std/examples/tests/echo_server_test.ts
parentc137b11abfb946ef72a5fcb27e11e0b286a33be3 (diff)
Rename abbreviated assertions in std/testing (#6118)
Diffstat (limited to 'std/examples/tests/echo_server_test.ts')
-rw-r--r--std/examples/tests/echo_server_test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/std/examples/tests/echo_server_test.ts b/std/examples/tests/echo_server_test.ts
index 3e6096190..475b0f73f 100644
--- a/std/examples/tests/echo_server_test.ts
+++ b/std/examples/tests/echo_server_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { assertStrictEq, assertNotEquals } from "../../testing/asserts.ts";
+import { assertStrictEquals, assertNotEquals } from "../../testing/asserts.ts";
import { BufReader, ReadLineResult } from "../../io/bufio.ts";
Deno.test("[examples/echo_server]", async () => {
@@ -17,7 +17,7 @@ Deno.test("[examples/echo_server]", async () => {
const message = await processReader.readLine();
assertNotEquals(message, null);
- assertStrictEq(
+ assertStrictEquals(
decoder.decode((message as ReadLineResult).line).trim(),
"Listening on 0.0.0.0:8080"
);
@@ -35,7 +35,7 @@ Deno.test("[examples/echo_server]", async () => {
.trim();
const expectedResponse = "Hello echo_server";
- assertStrictEq(actualResponse, expectedResponse);
+ assertStrictEquals(actualResponse, expectedResponse);
} finally {
conn?.close();
process.stdout!.close();