Skip to content

Commit 8e455a9

Browse files
watildeitaloacasas
authored andcommitted
test: add test for URLSearchParams inspection
The member methods of URLSearchParams should split across multiple lines with `util.inspect` depending on an option `breakLength`. PR-URL: #11428 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent ae9b891 commit 8e455a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/parallel/test-whatwg-url-searchparams-inspect.js

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ assert.strictEqual(util.inspect(sp.keys()),
1313
"URLSearchParamsIterator { 'a', 'b', 'b' }");
1414
assert.strictEqual(util.inspect(sp.values()),
1515
"URLSearchParamsIterator { 'a', 'b', 'c' }");
16+
assert.strictEqual(util.inspect(sp.keys(), {breakLength: 1}),
17+
"URLSearchParamsIterator {\n 'a',\n 'b',\n 'b' }");
1618

1719
const iterator = sp.entries();
1820
assert.strictEqual(util.inspect(iterator),

0 commit comments

Comments
 (0)