From 7b5c5147631101dd57e42525eae245668f9ce6fd Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Tue, 18 Jun 2024 19:00:16 +0200 Subject: fix(ext/console): bump default max str lengthto 10_00 (#24245) --- tests/unit/console_test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/unit/console_test.ts b/tests/unit/console_test.ts index 3eee2c9ff..49960f663 100644 --- a/tests/unit/console_test.ts +++ b/tests/unit/console_test.ts @@ -174,11 +174,11 @@ Deno.test(function consoleTestStringifyQuotes() { }); Deno.test(function consoleTestStringifyLongStrings() { - const veryLongString = "a".repeat(200); + const veryLongString = "a".repeat(10_100); // If we stringify an object containing the long string, it gets abbreviated. let actual = stringify({ veryLongString }); assert(actual.includes("...")); - assert(actual.length < 200); + assert(actual.length < 10_100); // However if we stringify the string itself, we get it exactly. actual = stringify(veryLongString); assertEquals(actual, veryLongString); -- cgit v1.2.3