Skip to content

Commit

Permalink
Fix lone cli test
Browse files Browse the repository at this point in the history
  • Loading branch information
bengotow authored and MarshallOfSound committed May 1, 2017
1 parent 5daea29 commit 39ef2c7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/fast/start_spec.js
Expand Up @@ -126,8 +126,14 @@ describe('start', () => {

describe('cli', () => {
let argv;
let childExitCode;
let childStub;
beforeEach(() => {
argv = process.argv;
childExitCode = 0;
childStub = {
on: (event, cb) => cb(childExitCode),
};
});

it('should remove all "~" from args when in VSCode debug mode', (done) => {
Expand All @@ -137,7 +143,7 @@ describe('start', () => {
start: (startOptions) => {
expect(startOptions.args).to.deep.equal(['--foo', 'bar', 'this arg exists']);
done();
return Promise.resolve();
return Promise.resolve(childStub);
},
},
});
Expand Down

0 comments on commit 39ef2c7

Please sign in to comment.