diff options
Diffstat (limited to 'std/testing/asserts.ts')
-rw-r--r-- | std/testing/asserts.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/std/testing/asserts.ts b/std/testing/asserts.ts index b7377c1bc..a3f0c1338 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 { let string = globalThis.Deno - ? Deno.inspect(v, { + ? stripColor(Deno.inspect(v, { depth: Infinity, sorted: true, trailingComma: true, compact: false, iterableLimit: Infinity, - }) + })) : String(v); if (typeof v == "string") { string = `"${string.replace(/(?=["\\])/g, "\\")}"`; @@ -303,7 +303,7 @@ export function assertStrictEquals( } /** - * Make an assertion that `actual` and `expected` are not strictly equal. + * Make an assertion that `actual` and `expected` are not strictly equal. * If the values are strictly equal then throw. * ```ts * assertNotStrictEquals(1, 1) |