Skip to content

Commit 44b1e18

Browse files
committed
chars.test.ts
1 parent 9481d5f commit 44b1e18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/chars.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { green, red } from "colorette"
1+
import { green, red, gray } from "colorette"
22
import assert from "node:assert/strict"
33
import { suite, test } from "node:test"
44
import stripAnsi from "strip-ansi"
@@ -15,7 +15,7 @@ suite("assertNoDiff.chars()", function () {
1515
const obj2 = "Captain Picard"
1616
const expected = `mismatching strings:
1717
18-
${red("Je")}{ green("C") }{ grey a }{ green ptai }{ grey n }{ red - Luc}{ grey Picard }`
18+
${red("Je")}${green("C")}${gray("a")}${green("ptai")}${gray("n")}${red("- Luc")}${gray("Picard")}`
1919
assert.throws(
2020
function () {
2121
assertNoDiff.chars(obj2, obj1)

0 commit comments

Comments
 (0)