Skip to content

Commit d83b907

Browse files
committed
test: add more cases
1 parent 21f259e commit d83b907

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

test/cli/cli.test.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,15 @@ describe('CLI', () => {
246246
.catch(done);
247247
});
248248

249+
it('--no-open', (done) => {
250+
testBin('--no-open')
251+
.then((output) => {
252+
expect(output.exitCode).toEqual(0);
253+
done();
254+
})
255+
.catch(done);
256+
});
257+
249258
it('--open-app google-chrome', (done) => {
250259
testBin('--open-app google-chrome')
251260
.then((output) => {
@@ -264,6 +273,15 @@ describe('CLI', () => {
264273
.catch(done);
265274
});
266275

276+
it('--no-open-target', (done) => {
277+
testBin('--no-open-target')
278+
.then((output) => {
279+
expect(output.exitCode).toEqual(0);
280+
done();
281+
})
282+
.catch(done);
283+
});
284+
267285
it('--open-target index.html', (done) => {
268286
testBin('--open-target index.html')
269287
.then((output) => {

0 commit comments

Comments
 (0)