File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ function cssExtract (bundle, opts) {
3939 var source = from2 ( chunk . source )
4040 var sm = staticModule ( {
4141 'insert-css' : function ( src ) {
42- writeStream . write ( String ( src ) )
42+ writeStream . write ( String ( src ) + '\n' )
4343 return from2 ( 'null' )
4444 }
4545 } )
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ test('css-extract', function (t) {
2525 return bl ( function ( err , data ) {
2626 t . ifError ( err , 'no error' )
2727 const exPath = path . join ( __dirname , './expected.css' )
28- const expected = fs . readFileSync ( exPath , 'utf8' ) . trim ( )
28+ const expected = fs . readFileSync ( exPath , 'utf8' ) . trim ( ) + '\n'
2929 t . equal ( String ( data ) , expected , 'extracted all the CSS' )
3030 } )
3131 }
@@ -65,7 +65,7 @@ test('css-extract', function (t) {
6565 return bl ( function ( err , data ) {
6666 t . ifError ( err , 'no error' )
6767 const exPath = path . join ( __dirname , './expected-static.css' )
68- const expected = fs . readFileSync ( exPath , 'utf8' ) . trim ( )
68+ const expected = fs . readFileSync ( exPath , 'utf8' ) . trim ( ) + '\n'
6969 t . equal ( String ( data ) , expected , 'extracted all the CSS' )
7070 } )
7171 }
You can’t perform that action at this time.
0 commit comments