Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b83c5d9

Browse filesBrowse files
aduh95ruyadorno
authored andcommitted
test: add trailing commas in test/pseudo-tty
PR-URL: #46371 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 524eec7 commit b83c5d9
Copy full SHA for b83c5d9
Expand file treeCollapse file tree

13 files changed

+15
-16
lines changed
Open diff view settings
Collapse file

‎test/.eslintrc.yaml‎

Copy file name to clipboardExpand all lines: test/.eslintrc.yaml
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ overrides:
8383
- node-api/*/*.js
8484
- parallel/*.js
8585
- parallel/*.mjs
86-
- pseudo-tty/*.js
8786
- pummel/*.js
8887
- sequential/*.js
8988
- sequential/*.mjs
Collapse file

‎test/pseudo-tty/console_colors.js‎

Copy file name to clipboardExpand all lines: test/pseudo-tty/console_colors.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ console.log('%s q', 'string');
1010
console.log('%o with object format param', { foo: 'bar' });
1111

1212
console.log(
13-
new Error('test\n at abc (../fixtures/node_modules/bar.js:4:4)\nfoobar')
13+
new Error('test\n at abc (../fixtures/node_modules/bar.js:4:4)\nfoobar'),
1414
);
1515

1616
try {
Collapse file

‎test/pseudo-tty/readline-dumb-tty.js‎

Copy file name to clipboardExpand all lines: test/pseudo-tty/readline-dumb-tty.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const readline = require('readline');
77

88
const rl = readline.createInterface({
99
input: process.stdin,
10-
output: process.stdout
10+
output: process.stdout,
1111
});
1212

1313
rl.write('text');
Collapse file

‎test/pseudo-tty/repl-dumb-tty.js‎

Copy file name to clipboardExpand all lines: test/pseudo-tty/repl-dumb-tty.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repl.start('> ');
1717
terminal: true,
1818
input: stream,
1919
output: process.stdout,
20-
useColors: false
20+
useColors: false,
2121
});
2222

2323
replServer.on('close', common.mustCall());
Collapse file

‎test/pseudo-tty/test-assert-no-color.js‎

Copy file name to clipboardExpand all lines: test/pseudo-tty/test-assert-no-color.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ assert.throws(
1515
'+ {}\n' +
1616
'- {\n' +
1717
'- foo: \'bar\'\n' +
18-
'- }'
18+
'- }',
1919
});
Collapse file

‎test/pseudo-tty/test-assert-position-indicator.js‎

Copy file name to clipboardExpand all lines: test/pseudo-tty/test-assert-position-indicator.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ process.stderr.columns = 20;
88
// Confirm that there is no position indicator.
99
assert.throws(
1010
() => { assert.strictEqual('a'.repeat(30), 'a'.repeat(31)); },
11-
(err) => !err.message.includes('^')
11+
(err) => !err.message.includes('^'),
1212
);
1313

1414
// Confirm that there is a position indicator.
1515
assert.throws(
1616
() => { assert.strictEqual('aaaa', 'aaaaa'); },
17-
(err) => err.message.includes('^')
17+
(err) => err.message.includes('^'),
1818
);
Collapse file

‎test/pseudo-tty/test-set-raw-mode-reset-process-exit.js‎

Copy file name to clipboardExpand all lines: test/pseudo-tty/test-set-raw-mode-reset-process-exit.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ child_process.spawnSync(process.execPath, [
1010

1111
const { stdout } = child_process.spawnSync('stty', {
1212
stdio: ['inherit', 'pipe', 'inherit'],
13-
encoding: 'utf8'
13+
encoding: 'utf8',
1414
});
1515

1616
if (stdout.match(/-echo\b/)) {
Collapse file

‎test/pseudo-tty/test-set-raw-mode-reset-signal.js‎

Copy file name to clipboardExpand all lines: test/pseudo-tty/test-set-raw-mode-reset-signal.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ proc.stdout.on('data', common.mustCall(() => {
1515
proc.on('exit', common.mustCall(() => {
1616
const { stdout } = child_process.spawnSync('stty', {
1717
stdio: ['inherit', 'pipe', 'inherit'],
18-
encoding: 'utf8'
18+
encoding: 'utf8',
1919
});
2020

2121
if (stdout.match(/-echo\b/)) {
Collapse file

‎test/pseudo-tty/test-set-raw-mode-reset.js‎

Copy file name to clipboardExpand all lines: test/pseudo-tty/test-set-raw-mode-reset.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ child_process.spawnSync(process.execPath, [
1111

1212
const { stdout } = child_process.spawnSync('stty', {
1313
stdio: ['inherit', 'pipe', 'inherit'],
14-
encoding: 'utf8'
14+
encoding: 'utf8',
1515
});
1616

1717
if (stdout.match(/-echo\b/)) {
Collapse file

‎test/pseudo-tty/test-trace-sigint-disabled.js‎

Copy file name to clipboardExpand all lines: test/pseudo-tty/test-trace-sigint-disabled.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if (process.env.CHILD === 'true') {
1414
['--trace-sigint', __filename],
1515
{
1616
env: { ...process.env, CHILD: 'true' },
17-
stdio: 'inherit'
17+
stdio: 'inherit',
1818
});
1919
cp.on('exit', mustCall((code, signal) => {
2020
assert.strictEqual(signal, null);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.