From 10596e20e8ddef5a8e23d2a0c397ee570d035fb5 Mon Sep 17 00:00:00 2001 From: Aviv Keller <38299977+RedYetiDev@users.noreply.github.com> Date: Wed, 24 Apr 2024 14:56:49 -0400 Subject: [PATCH] test: fix backtick usage in docs PR-URL: https://github.com/nodejs/node/pull/52643 Reviewed-By: Kohei Ueno Reviewed-By: Luigi Pinca Reviewed-By: Moshe Atlow --- test/parallel/test-cli-node-options-docs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-cli-node-options-docs.js b/test/parallel/test-cli-node-options-docs.js index 0ac272fc95bb1a..ef82489d044171 100644 --- a/test/parallel/test-cli-node-options-docs.js +++ b/test/parallel/test-cli-node-options-docs.js @@ -105,11 +105,11 @@ for (const [, envVar, config] of nodeOptionsCC.matchAll(addOptionRE)) { assert(false, `Should have option ${envVar} in NODE_OPTIONS documented`); } - if (isInNodeOption && hasTrueAsDefaultValue && new RegExp(`\`--no${envVar.slice(1)}`).test(cliText) === false) { + if (isInNodeOption && hasTrueAsDefaultValue && new RegExp(`\`--no${envVar.slice(1)}\``).test(cliText) === false) { assert(false, `Should have option --no${envVar.slice(1)} in NODE_OPTIONS documented`); } - if (!hasTrueAsDefaultValue && new RegExp(`\`--no${envVar.slice(1)}`).test(cliText) === true) { + if (!hasTrueAsDefaultValue && new RegExp(`\`--no${envVar.slice(1)}\``).test(cliText) === true) { assert(false, `Should not have option --no${envVar.slice(1)} in NODE_OPTIONS documented`); }