diff options
author | Casper Beyer <caspervonb@pm.me> | 2020-06-06 11:43:00 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-05 23:43:00 -0400 |
commit | ed5aedc6b4a1d72208649afd8793e288d94021b1 (patch) | |
tree | f5039c94c2a4d03182a5b97dbc0471a1b3123eb1 /std/examples/tests/catj_test.ts | |
parent | c137b11abfb946ef72a5fcb27e11e0b286a33be3 (diff) |
Rename abbreviated assertions in std/testing (#6118)
Diffstat (limited to 'std/examples/tests/catj_test.ts')
-rw-r--r-- | std/examples/tests/catj_test.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/std/examples/tests/catj_test.ts b/std/examples/tests/catj_test.ts index c3eb61f51..a859db0c1 100644 --- a/std/examples/tests/catj_test.ts +++ b/std/examples/tests/catj_test.ts @@ -1,5 +1,5 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -import { assertStrictEq } from "../../testing/asserts.ts"; +import { assertStrictEquals } from "../../testing/asserts.ts"; Deno.test("[examples/catj] print an array", async () => { const decoder = new TextDecoder(); @@ -15,7 +15,7 @@ Deno.test("[examples/catj] print an array", async () => { '.[2].array[1] = "bar"', ].join("\n"); - assertStrictEq(actual, expected); + assertStrictEquals(actual, expected); } finally { process.stdin!.close(); process.close(); @@ -34,7 +34,7 @@ Deno.test("[examples/catj] print an object", async () => { '.array[0].message = "hello"', ].join("\n"); - assertStrictEq(actual, expected); + assertStrictEquals(actual, expected); } finally { process.stdin!.close(); process.close(); @@ -52,7 +52,7 @@ Deno.test("[examples/catj] print multiple files", async () => { const actual = decoder.decode(output).trim(); const expected = ['.message = "hello"', ".[0] = 1", ".[1] = 2"].join("\n"); - assertStrictEq(actual, expected); + assertStrictEquals(actual, expected); } finally { process.stdin!.close(); process.close(); @@ -69,7 +69,7 @@ Deno.test("[examples/catj] read from stdin", async () => { const output = await process.output(); const actual = decoder.decode(output).trim(); - assertStrictEq(actual, '.foo = "bar"'); + assertStrictEquals(actual, '.foo = "bar"'); } finally { process.close(); } |