From c6544ff5a618e86fc85553c553b44cf32a490dda Mon Sep 17 00:00:00 2001 From: Rafael Gonzaga Date: Wed, 14 Aug 2024 15:43:01 -0300 Subject: [PATCH] benchmark: use assert.ok searchparams PR-URL: https://github.com/nodejs/node/pull/54334 Reviewed-By: Yagiz Nizipli Reviewed-By: Matthew Aitken Reviewed-By: Luigi Pinca Reviewed-By: Jake Yuesong Li --- benchmark/url/url-searchparams-update.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/url/url-searchparams-update.js b/benchmark/url/url-searchparams-update.js index 082d476a5d2250..3c42de61110ef3 100644 --- a/benchmark/url/url-searchparams-update.js +++ b/benchmark/url/url-searchparams-update.js @@ -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);