diff options
| author | Ryan Dahl <ry@tinyclouds.org> | 2019-03-06 19:42:24 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-06 19:42:24 -0500 |
| commit | caa383a5835c167bf6657120ad3c1c5009670785 (patch) | |
| tree | 2f350928e23e472278b9c3ebd798f13169b6d581 /examples | |
| parent | e36edfdb3fd4709358a5f499f13cfe3d53c2b4f7 (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 'examples')
| -rw-r--r-- | examples/test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/test.ts b/examples/test.ts index f94c39d40..a8f4e3548 100644 --- a/examples/test.ts +++ b/examples/test.ts @@ -1,15 +1,15 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. const { run } = Deno; import { test } from "../testing/mod.ts"; -import { assertEq } from "../testing/asserts.ts"; +import { assertEquals } from "../testing/asserts.ts"; /** Example of how to do basic tests */ test(function t1() { - assertEq("hello", "hello"); + assertEquals("hello", "hello"); }); test(function t2() { - assertEq("world", "world"); + assertEquals("world", "world"); }); /** A more complicated test that runs a subprocess. */ @@ -19,5 +19,5 @@ test(async function catSmoke() { stdout: "piped" }); const s = await p.status(); - assertEq(s.code, 0); + assertEquals(s.code, 0); }); |
