Skip to content

Commit 5e2062d

Browse files
committed
[AUTOMATED]: Prettier Code Styling
1 parent 6f18924 commit 5e2062d

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

scripts/run_changed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const root = resolve(__dirname, '..');
2424
const git = simpleGit(root);
2525

2626
// use test:ci command in CI
27-
const testCommand = !!process.env.CI ? 'test:ci': 'test';
27+
const testCommand = !!process.env.CI ? 'test:ci' : 'test';
2828
/**
2929
* Changes to these files warrant running all tests.
3030
*/

scripts/run_tests_in_ci.js

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,28 @@ const path = require('path');
33
const { spawn } = require('child-process-promise');
44

55
(async () => {
6-
const myPath = argv._[0] || '.'; // default to the current directory
7-
const dir = path.resolve(myPath);
8-
const { name } = require(`${dir}/package.json`);
6+
const myPath = argv._[0] || '.'; // default to the current directory
7+
const dir = path.resolve(myPath);
8+
const { name } = require(`${dir}/package.json`);
99

10-
let stdio = '';
11-
let stderr = '';
12-
try {
13-
const testProcess = spawn('yarn', ['--cwd', dir, 'test']);
10+
let stdio = '';
11+
let stderr = '';
12+
try {
13+
const testProcess = spawn('yarn', ['--cwd', dir, 'test']);
1414

15-
testProcess.childProcess.stdout.on('data', data => {
16-
stdio += data.toString();
17-
});
18-
testProcess.childProcess.stderr.on('data', data => {
19-
stderr += data.toString();
20-
});
15+
testProcess.childProcess.stdout.on('data', data => {
16+
stdio += data.toString();
17+
});
18+
testProcess.childProcess.stderr.on('data', data => {
19+
stderr += data.toString();
20+
});
2121

22-
await testProcess;
23-
console.log('Success: ' + name);
24-
} catch (e) {
25-
console.error('Failure: ' + name);
26-
console.log(stdio);
27-
console.error(stderr);
28-
process.exit(1);
29-
}
22+
await testProcess;
23+
console.log('Success: ' + name);
24+
} catch (e) {
25+
console.error('Failure: ' + name);
26+
console.log(stdio);
27+
console.error(stderr);
28+
process.exit(1);
29+
}
3030
})();

0 commit comments

Comments
 (0)