We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9481d5f commit 44b1e18Copy full SHA for 44b1e18
test/chars.test.ts
@@ -1,4 +1,4 @@
1
-import { green, red } from "colorette"
+import { green, red, gray } from "colorette"
2
import assert from "node:assert/strict"
3
import { suite, test } from "node:test"
4
import stripAnsi from "strip-ansi"
@@ -15,7 +15,7 @@ suite("assertNoDiff.chars()", function () {
15
const obj2 = "Captain Picard"
16
const expected = `mismatching strings:
17
18
-${red("Je")}{ green("C") }{ grey a }{ green ptai }{ grey n }{ red - Luc}{ grey Picard }`
+${red("Je")}${green("C")}${gray("a")}${green("ptai")}${gray("n")}${red("- Luc")}${gray("Picard")}`
19
assert.throws(
20
function () {
21
assertNoDiff.chars(obj2, obj1)
0 commit comments