Skip to content

Commit 3be5e86

Browse files
Trottcodebytere
authored andcommitted
test: add util.inspect test for null maxStringLength
Add test case to cover currently-uncovered code. Refs: https://coverage.nodejs.org/coverage-39a7f7663e8f70fc/lib/internal/util/inspect.js.html#L333 PR-URL: #36086 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]>
1 parent e54108f commit 3be5e86

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/parallel/test-util-inspect.js

+1
Original file line numberDiff line numberDiff line change
@@ -2906,6 +2906,7 @@ assert.strictEqual(
29062906
util.inspect(x, { maxStringLength: 4 }),
29072907
"'aaaa'... 999996 more characters"
29082908
);
2909+
assert.match(util.inspect(x, { maxStringLength: null }), /a'$/);
29092910
}
29102911

29112912
{

0 commit comments

Comments
 (0)