1+ import path from 'path' ;
12import test from 'ava' ;
23import isPromise from 'is-promise' ;
34import outResolve from '../lib/out-resolve' ;
@@ -15,26 +16,26 @@ test('only input should return file.ext', async t => {
1516} ) ;
1617
1718test ( 'only input should return tmp/file.ext' , async t => {
18- t . is ( await outResolve ( 'tmp/file.ext' ) , 'tmp/file.ext' ) ;
19+ t . is ( await outResolve ( 'tmp/file.ext' ) , path . normalize ( 'tmp/file.ext' ) ) ;
1920} ) ;
2021
2122test ( 'input file and output file should return output.ext' , async t => {
2223 t . is ( await outResolve ( 'file.ext' , 'output.ext' ) , 'output.ext' ) ;
2324} ) ;
2425
2526test ( 'input file and output folder should return tmp/file.ext' , async t => {
26- t . is ( await outResolve ( 'file.ext' , 'tmp' ) , 'tmp/file.ext' ) ;
27+ t . is ( await outResolve ( 'file.ext' , 'tmp' ) , path . normalize ( 'tmp/file.ext' ) ) ;
2728} ) ;
2829
2930test ( 'input files and output folder should return tmp/test/*.ext' , async t => {
30- t . is ( await outResolve ( 'test/*.ext' , 'tmp' ) , 'tmp/test/*.ext' ) ;
31+ t . is ( await outResolve ( 'test/*.ext' , 'tmp' ) , path . normalize ( 'tmp/test/*.ext' ) ) ;
3132} ) ;
3233
3334test ( 'input files and output file should return output.ext' , async t => {
3435 t . is ( await outResolve ( 'test/*' , 'output.ext' ) , 'output.ext' ) ;
3536} ) ;
3637
3738test ( 'input files and output file should return tmp/output.ext' , async t => {
38- t . is ( await outResolve ( 'test/*' , 'tmp/output.ext' ) , 'tmp/output.ext' ) ;
39+ t . is ( await outResolve ( 'test/*' , 'tmp/output.ext' ) , path . normalize ( 'tmp/output.ext' ) ) ;
3940} ) ;
4041
0 commit comments