Skip to content

Commit

Permalink
test(scenario3): rudimentary smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Oct 16, 2019
1 parent b3f7c23 commit b18831f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/test-scenario3-setup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { test } from 'tape-promise/tape';
import { spawn } from 'child_process';

test('make scenario3-setup', async t => {
try {
await new Promise(resolve => spawn('make', ['scenario3-setup'], { cwd: `${__dirname}/..`, stdio: ['ignore', 'ignore', 'inherit'] })
.addListener('exit', code => {
t.equal(code, 0, 'exits successfully');
resolve();
}));
} catch (e) {
t.isNot(e, e, 'unexpected exception');
} finally {
t.end();
}
});

0 comments on commit b18831f

Please sign in to comment.