Skip to content

Commit 23c0845

Browse files
JustinBeckwithyoshi-automation
authored andcommitted
refactor: use execSync for tests
refactor: use execSync for tests #187 automerged by dpebot
1 parent 45da3c5 commit 23c0845

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

dataproc/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
},
1717
"devDependencies": {
1818
"chai": "^4.2.0",
19-
"execa": "^1.0.0",
2019
"mocha": "^6.0.0"
2120
}
2221
}

dataproc/system-test/quickstart.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
*/
1515

1616
const {assert} = require('chai');
17-
const execa = require('execa');
17+
const {execSync} = require('child_process');
1818

1919
describe('dataproc samples', () => {
2020
it('should run the quickstart', async () => {
21-
const {stdout} = await execa.shell('node quickstart');
21+
const stdout = execSync('node quickstart');
2222
assert.match(stdout, /Total resources:/);
2323
});
2424
});

0 commit comments

Comments
 (0)