File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -8,19 +8,30 @@ test('sheetify-sass', function (t) {
8
8
t . test ( 'should transform sass and scss' , function ( t ) {
9
9
const expected = fs . readFileSync ( path . join ( __dirname , 'expected.css' ) )
10
10
11
- t . plan ( 2 )
11
+ t . plan ( 4 )
12
+
13
+ const files = new Set ( )
12
14
browserify ( path . join ( __dirname , 'source.js' ) )
15
+ . on ( 'transform' , function ( transform ) {
16
+ transform . on ( 'file' , function ( filename ) {
17
+ files . add ( filename )
18
+ } )
19
+ } )
13
20
. transform ( 'sheetify' , {
14
21
transform : [ './' ]
15
22
} )
16
23
. plugin ( 'css-extract' , {
17
24
out : createWs
18
- } ) . bundle ( )
25
+ } )
26
+ . bundle ( )
19
27
20
28
function createWs ( ) {
21
29
return bl ( function ( err , buf ) {
22
30
t . ifError ( err , 'no error' )
23
31
t . equal ( String ( buf ) . trim ( ) , String ( expected ) . trim ( ) )
32
+
33
+ t . ok ( files . has ( path . join ( __dirname , 'import.scss' ) ) )
34
+ t . ok ( files . has ( path . join ( __dirname , 'indent-import.sass' ) ) )
24
35
} )
25
36
}
26
37
} )
You can’t perform that action at this time.
0 commit comments