Skip to content

Commit

Permalink
benchmark: use assert.ok searchparams
Browse files Browse the repository at this point in the history
PR-URL: nodejs#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 authored Aug 14, 2024
1 parent 2573f74 commit 4e6befd
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 4e6befd

Please sign in to comment.