File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
1
import test from 'ava' ;
2
2
3
- import path from 'path' ;
4
-
5
3
import { rollup } from 'rollup' ;
6
4
import alias from '../dist/rollup-plugin-alias' ;
7
5
@@ -15,11 +13,11 @@ test(t =>
15
13
'./numberFolder' : './folder' ,
16
14
} ) ] ,
17
15
} ) . then ( stats => {
18
- t . is ( path . basename ( stats . modules [ 0 ] . id ) , ' nonAliased.js') ;
19
- t . is ( path . basename ( stats . modules [ 1 ] . id ) , ' aliasMe.js') ;
20
- t . is ( path . basename ( stats . modules [ 2 ] . id ) , ' localAliasMe.js') ;
21
- t . is ( path . basename ( stats . modules [ 3 ] . id ) , ' anotherNumber.js') ;
22
- t . is ( path . basename ( stats . modules [ 4 ] . id ) , ' index.js') ;
16
+ t . is ( stats . modules [ 0 ] . id . endsWith ( '/files/ nonAliased.js') , true ) ;
17
+ t . is ( stats . modules [ 1 ] . id . endsWith ( '/files/ aliasMe.js') , true ) ;
18
+ t . is ( stats . modules [ 2 ] . id . endsWith ( '/files/ localAliasMe.js') , true ) ;
19
+ t . is ( stats . modules [ 3 ] . id . endsWith ( '/files/folder/ anotherNumber.js') , true ) ;
20
+ t . is ( stats . modules [ 4 ] . id . endsWith ( '/files/ index.js') , true ) ;
23
21
t . is ( stats . modules . length , 5 ) ;
24
22
} )
25
23
) ;
You can’t perform that action at this time.
0 commit comments