@@ -20,22 +20,22 @@ test('only input should return tmp/file.ext', async t => {
2020} ) ;
2121
2222test ( 'input file and output file should return output.ext' , async t => {
23- t . is ( await outResolve ( 'file.ext' , 'output.ext' ) , 'output.ext' ) ;
23+ t . is ( await outResolve ( 'file.ext' , { output : 'output.ext' } ) , 'output.ext' ) ;
2424} ) ;
2525
2626test ( 'input file and output folder should return tmp/file.ext' , async t => {
27- t . is ( await outResolve ( 'file.ext' , 'tmp' ) , path . normalize ( 'tmp/file.ext' ) ) ;
27+ t . is ( await outResolve ( 'file.ext' , { output : 'tmp' } ) , path . normalize ( 'tmp/file.ext' ) ) ;
2828} ) ;
2929
3030test ( 'input files and output folder should return tmp/test/*.ext' , async t => {
3131 t . is ( await outResolve ( path . normalize ( 'tmp/test/*.ext' ) , undefined ) , path . normalize ( 'tmp/test/*.ext' ) ) ;
3232} ) ;
3333
3434test ( 'input files and output file should return output.ext' , async t => {
35- t . is ( await outResolve ( 'test/*' , 'output.ext' ) , 'output.ext' ) ;
35+ t . is ( await outResolve ( 'test/*' , { output : 'output.ext' } ) , 'output.ext' ) ;
3636} ) ;
3737
3838test ( 'input files and output file should return tmp/output.ext' , async t => {
39- t . is ( await outResolve ( 'test/*' , 'tmp/output.ext' ) , 'tmp/output.ext' ) ;
39+ t . is ( await outResolve ( 'test/*' , { output : 'tmp/output.ext' } ) , 'tmp/output.ext' ) ;
4040} ) ;
4141
0 commit comments