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 /colors | |
| 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 'colors')
| -rw-r--r-- | colors/test.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/colors/test.ts b/colors/test.ts index b541580d2..0c9090c5f 100644 --- a/colors/test.ts +++ b/colors/test.ts @@ -1,25 +1,25 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test } from "../testing/mod.ts"; -import { assertEq } from "../testing/asserts.ts"; +import { assertEquals } from "../testing/asserts.ts"; import { red, bgBlue, setEnabled, getEnabled } from "./mod.ts"; import "./example.ts"; test(function singleColor() { - assertEq(red("Hello world"), "[31mHello world[39m"); + assertEquals(red("Hello world"), "[31mHello world[39m"); }); test(function doubleColor() { - assertEq(bgBlue(red("Hello world")), "[44m[31mHello world[39m[49m"); + assertEquals(bgBlue(red("Hello world")), "[44m[31mHello world[39m[49m"); }); test(function replacesCloseCharacters() { - assertEq(red("Hel[39mlo"), "[31mHel[31mlo[39m"); + assertEquals(red("Hel[39mlo"), "[31mHel[31mlo[39m"); }); test(function enablingColors() { - assertEq(getEnabled(), true); + assertEquals(getEnabled(), true); setEnabled(false); - assertEq(bgBlue(red("Hello world")), "Hello world"); + assertEquals(bgBlue(red("Hello world")), "Hello world"); setEnabled(true); - assertEq(red("Hello world"), "[31mHello world[39m"); + assertEquals(red("Hello world"), "[31mHello world[39m"); }); |
