summaryrefslogtreecommitdiff
path: root/colors/test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'colors/test.ts')
-rw-r--r--colors/test.ts14
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"), "Hello world");
+ assertEquals(red("Hello world"), "Hello world");
});
test(function doubleColor() {
- assertEq(bgBlue(red("Hello world")), "Hello world");
+ assertEquals(bgBlue(red("Hello world")), "Hello world");
});
test(function replacesCloseCharacters() {
- assertEq(red("Hello"), "Hello");
+ assertEquals(red("Hello"), "Hello");
});
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"), "Hello world");
+ assertEquals(red("Hello world"), "Hello world");
});