Skip to content

Commit

Permalink
refactor: use execSync for tests (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored Apr 4, 2019
1 parent db0df82 commit 7cdb465
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion container/snippets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
},
"devDependencies": {
"chai": "^4.2.0",
"execa": "^1.0.0",
"mocha": "^6.0.0"
}
}
4 changes: 2 additions & 2 deletions container/snippets/system-test/sample.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
'use strict';

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

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

0 comments on commit 7cdb465

Please sign in to comment.