Skip to content

Commit 10596e2

Browse files
avivkelleraduh95
authored andcommitted
test: fix backtick usage in docs
PR-URL: #52643 Reviewed-By: Kohei Ueno <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Moshe Atlow <[email protected]>
1 parent 0b97031 commit 10596e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-cli-node-options-docs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ for (const [, envVar, config] of nodeOptionsCC.matchAll(addOptionRE)) {
105105
assert(false, `Should have option ${envVar} in NODE_OPTIONS documented`);
106106
}
107107

108-
if (isInNodeOption && hasTrueAsDefaultValue && new RegExp(`\`--no${envVar.slice(1)}`).test(cliText) === false) {
108+
if (isInNodeOption && hasTrueAsDefaultValue && new RegExp(`\`--no${envVar.slice(1)}\``).test(cliText) === false) {
109109
assert(false, `Should have option --no${envVar.slice(1)} in NODE_OPTIONS documented`);
110110
}
111111

112-
if (!hasTrueAsDefaultValue && new RegExp(`\`--no${envVar.slice(1)}`).test(cliText) === true) {
112+
if (!hasTrueAsDefaultValue && new RegExp(`\`--no${envVar.slice(1)}\``).test(cliText) === true) {
113113
assert(false, `Should not have option --no${envVar.slice(1)} in NODE_OPTIONS documented`);
114114
}
115115

0 commit comments

Comments
 (0)