Skip to content

Commit 110545d

Browse files
committed
fixup! test: ensure that CLI options are alphabetical
1 parent 6369aa2 commit 110545d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,10 @@ for (const [, envVar, config] of nodeOptionsCC.matchAll(addOptionRE)) {
129129
const end = /^## Environment variables/m;
130130
const filteredCLIText = cliText.slice(cliText.search(start), cliText.search(end)).trim();
131131
const cliOptionPattern = /^### `(--[a-zA-Z0-9-]+)`/mg;
132-
const options = Array.from(filteredCLIText.matchAll(cliOptionPattern)).map(match => match[1]);
132+
const options = Array.from(filteredCLIText.matchAll(cliOptionPattern)).map((match) => match[1]);
133133

134134
const sortedOptions = [...options].sort();
135+
/* eslint-disable no-restricted-syntax */
135136
assert.deepStrictEqual(options, sortedOptions, 'CLI options are not in alphabetical order');
136137

137138
}

0 commit comments

Comments
 (0)