summaryrefslogtreecommitdiff
path: root/std/testing/asserts.ts
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2020-09-30 03:59:50 +0100
committerGitHub <noreply@github.com>2020-09-30 12:59:50 +1000
commit27ee4b255107d8e074c06b57927b7349f4edd044 (patch)
tree26bd3ba6f4de79c6873eaa5bf99432b5f04ae3d9 /std/testing/asserts.ts
parent2184cf5c07b2b78ebf586b032f45ce113670262d (diff)
feat(cli/console): Add Deno.InspectOptions::colors (#7742)
Ref: https://github.com/denoland/deno/pull/7516#pullrequestreview-489567120
Diffstat (limited to 'std/testing/asserts.ts')
-rw-r--r--std/testing/asserts.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/testing/asserts.ts b/std/testing/asserts.ts
index 05bb995ab..889a622fd 100644
--- a/std/testing/asserts.ts
+++ b/std/testing/asserts.ts
@@ -21,13 +21,13 @@ export class AssertionError extends Error {
export function _format(v: unknown): string {
return globalThis.Deno
- ? stripColor(Deno.inspect(v, {
+ ? Deno.inspect(v, {
depth: Infinity,
sorted: true,
trailingComma: true,
compact: false,
iterableLimit: Infinity,
- }))
+ })
: `"${String(v).replace(/(?=["\\])/g, "\\")}"`;
}