@@ -5,7 +5,7 @@ const { run } = require('../utils/test-utils');
55
66describe ( 'output flag defaults' , ( ) => {
77 it ( 'should create default file for a given directory' , ( done ) => {
8- const { stdout } = run ( __dirname , [ '--entry' , './a.js' , '--output' , './binary' ] , false ) ;
8+ const { stdout } = run ( __dirname , [ '--entry' , './a.js' , '--output-path ' , './binary' ] , false ) ;
99 // Should not print warning about config fallback, as we have production as default
1010 expect ( stdout ) . not . toContain ( 'option has not been set, webpack will fallback to' ) ;
1111 stat ( resolve ( __dirname , './binary/main.js' ) , ( err , stats ) => {
@@ -26,7 +26,7 @@ describe('output flag defaults', () => {
2626 } ) ;
2727
2828 it ( 'throw error on empty output flag' , ( ) => {
29- const { stderr } = run ( __dirname , [ '--entry' , './a.js' , '--output' ] , false ) ;
30- expect ( stderr ) . toContain ( "error: option '-o, --output <value>' argument missing" ) ;
29+ const { stderr } = run ( __dirname , [ '--entry' , './a.js' , '--output-path ' ] , false ) ;
30+ expect ( stderr ) . toContain ( "error: option '-o, --output-path <value>' argument missing" ) ;
3131 } ) ;
3232} ) ;
0 commit comments