File tree 1 file changed +32
-0
lines changed
1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -504,6 +504,15 @@ describe('CLI', () => {
504
504
. catch ( done ) ;
505
505
} ) ;
506
506
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
+
507
516
it ( '--open-target /first.html second.html' , ( done ) => {
508
517
testBin ( '--open-target /first.html second.html' )
509
518
. then ( ( output ) => {
@@ -522,6 +531,15 @@ describe('CLI', () => {
522
531
. catch ( done ) ;
523
532
} ) ;
524
533
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
+
525
543
it ( '--client-overlay' , ( done ) => {
526
544
testBin ( '--client-overlay' )
527
545
. then ( ( output ) => {
@@ -613,6 +631,20 @@ describe('CLI', () => {
613
631
. catch ( done ) ;
614
632
} ) ;
615
633
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
+
616
648
it ( '--static-serve-index' , ( done ) => {
617
649
testBin ( '--static-serve-index' )
618
650
. then ( ( output ) => {
You can’t perform that action at this time.
0 commit comments