Skip to content

Commit

Permalink
refactor: use execSync for tests
Browse files Browse the repository at this point in the history
refactor: use execSync for tests

#187 automerged by dpebot
  • Loading branch information
JustinBeckwith authored and yoshi-automation committed Apr 4, 2019
1 parent 45da3c5 commit 23c0845
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion dataproc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
},
"devDependencies": {
"chai": "^4.2.0",
"execa": "^1.0.0",
"mocha": "^6.0.0"
}
}
4 changes: 2 additions & 2 deletions dataproc/system-test/quickstart.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
*/

const {assert} = require('chai');
const execa = require('execa');
const {execSync} = require('child_process');

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

0 comments on commit 23c0845

Please sign in to comment.