Skip to content

Commit b53068e

Browse files
TrottBethGriggs
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 <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
1 parent 929e127 commit b53068e

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
@@ -2905,6 +2905,7 @@ assert.strictEqual(
29052905
util.inspect(x, { maxStringLength: 4 }),
29062906
"'aaaa'... 999996 more characters"
29072907
);
2908+
assert.match(util.inspect(x, { maxStringLength: null }), /a'$/);
29082909
}
29092910

29102911
{

0 commit comments

Comments
 (0)