@@ -20,22 +20,22 @@ test('only input should return tmp/file.ext', async t => {
20
20
} ) ;
21
21
22
22
test ( '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' ) ;
24
24
} ) ;
25
25
26
26
test ( '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' ) ) ;
28
28
} ) ;
29
29
30
30
test ( 'input files and output folder should return tmp/test/*.ext' , async t => {
31
31
t . is ( await outResolve ( path . normalize ( 'tmp/test/*.ext' ) , undefined ) , path . normalize ( 'tmp/test/*.ext' ) ) ;
32
32
} ) ;
33
33
34
34
test ( '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' ) ;
36
36
} ) ;
37
37
38
38
test ( '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' ) ;
40
40
} ) ;
41
41
0 commit comments