Skip to content

Commit

Permalink
benchmark: use assert.ok searchparams
Browse files Browse the repository at this point in the history
PR-URL: #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>
  • Loading branch information
RafaelGSS committed Aug 19, 2024
1 parent e349dad commit fa20300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmark/url/url-searchparams-update.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit fa20300

Please sign in to comment.