Skip to content

Commit 6b3c1f9

Browse files
fix test
1 parent f763494 commit 6b3c1f9

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

package-lock.json

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/commands.test.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as path from "path";
22
import * as fs from "fs";
3-
import * as kl from "kolorist";
43
import {
54
DenoJson,
65
enableYarnBerry,
@@ -839,9 +838,9 @@ describe("show", () => {
839838
undefined,
840839
true,
841840
);
842-
const txt = kl.stripColors(output.combined);
843-
assert.ok(txt.includes("latest:"));
844-
assert.ok(txt.includes("npm tarball:"));
841+
842+
assert.ok(output.combined.includes("latest:"));
843+
assert.ok(output.combined.includes("npm tarball:"));
845844
});
846845

847846
it("can use 'view' alias", async () => {
@@ -865,8 +864,8 @@ describe("show", () => {
865864
undefined,
866865
true,
867866
);
868-
const txt = kl.stripColors(output.combined);
869-
assert.ok(txt.includes("latest: -"));
870-
assert.ok(txt.includes("npm tarball:"));
867+
868+
assert.ok(output.combined.includes("latest: -"));
869+
assert.ok(output.combined.includes("npm tarball:"));
871870
});
872871
});

0 commit comments

Comments
 (0)