test: use string instead of RegExp in split() · nodejs/node@7e3bab7 · GitHub
Skip to content

Commit 7e3bab7

Browse files
vsemozhetbytaddaleax
authored andcommitted
test: use string instead of RegExp in split()
PR-URL: #13710 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
1 parent 0e857a5 commit 7e3bab7

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

test/parallel/test-http-outgoing-first-chunk-singlebyte-encoding.js

Lines changed: 1 addition & 1 deletion

test/parallel/test-repl-setprompt.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ child.stdin.end(`e.setPrompt("${p}");${os.EOL}`);
4444
child.on('close', function(code, signal) {
4545
assert.strictEqual(code, 0);
4646
assert.ok(!signal);
47-
const lines = data.split(/\n/);
47+
const lines = data.split('\n');
4848
assert.strictEqual(lines.pop(), p);
4949
});

test/parallel/test-stdin-script-child.js

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)