Skip to content

Commit 3318ac7

Browse files
committed
test: more cases
1 parent 745593f commit 3318ac7

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

test/cli/cli.test.js

+32
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,15 @@ describe('CLI', () => {
504504
.catch(done);
505505
});
506506

507+
it(' --open --open-target index.html', (done) => {
508+
testBin('--open --open-target index.html')
509+
.then((output) => {
510+
expect(output.exitCode).toEqual(0);
511+
done();
512+
})
513+
.catch(done);
514+
});
515+
507516
it('--open-target /first.html second.html', (done) => {
508517
testBin('--open-target /first.html second.html')
509518
.then((output) => {
@@ -522,6 +531,15 @@ describe('CLI', () => {
522531
.catch(done);
523532
});
524533

534+
it('--open --open-target /index.html --open-app google-chrome', (done) => {
535+
testBin('--open --open-target /index.html --open-app google-chrome')
536+
.then((output) => {
537+
expect(output.exitCode).toEqual(0);
538+
done();
539+
})
540+
.catch(done);
541+
});
542+
525543
it('--client-overlay', (done) => {
526544
testBin('--client-overlay')
527545
.then((output) => {
@@ -613,6 +631,20 @@ describe('CLI', () => {
613631
.catch(done);
614632
});
615633

634+
it('--static --static-directory', (done) => {
635+
testBin(
636+
`--static --static-directory ${path.resolve(
637+
__dirname,
638+
'../fixtures/static/webpack.config.js'
639+
)}`
640+
)
641+
.then((output) => {
642+
expect(output.exitCode).toEqual(0);
643+
done();
644+
})
645+
.catch(done);
646+
});
647+
616648
it('--static-serve-index', (done) => {
617649
testBin('--static-serve-index')
618650
.then((output) => {

0 commit comments

Comments
 (0)