mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
benchmark: use assert.ok searchparams
PR-URL: https://github.com/nodejs/node/pull/54334 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Matthew Aitken <maitken033380023@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
This commit is contained in:
parent
2573f74b0d
commit
4e6befd60e
@ -17,7 +17,7 @@ function getMethod(url, property) {
|
||||
|
||||
function main({ searchParams, property, n }) {
|
||||
const url = new URL('https://nodejs.org');
|
||||
if (searchParams === 'true') assert(url.searchParams);
|
||||
if (searchParams === 'true') assert.ok(url.searchParams);
|
||||
|
||||
const method = getMethod(url, property);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user