Skip to content

Commit df799ac

Browse files
committed
DONOTSUBMIT: Test case for angular#16073.
1 parent e2f8c57 commit df799ac

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

spaced script.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log('Hello World!');

test.js

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const {spawn} = require('child_process');
2+
3+
const proc = spawn('node', [
4+
'/usr/local/google/home/douglasparker/Source/Angular CLI/spaced script.js',
5+
], {
6+
});
7+
8+
proc.stdout.on('data', (data) => {
9+
console.log(data.toString());
10+
});
11+
proc.stderr.on('data', (data) => {
12+
console.error(data.toString());
13+
});
14+
proc.once('exit', (code) => {
15+
console.error(`Exited with code: ${code}.`);
16+
});
17+
proc.once('error', (err) => {
18+
console.error(`Exited with error: ${err.message}`);
19+
});

0 commit comments

Comments
 (0)