@@ -154,7 +154,7 @@ describe('loader', () => {
154
154
'should configure css (default)' ,
155
155
testLoader ( 'test/fixtures/css.html' , function ( err , code , map ) {
156
156
expect ( err ) . not . to . exist ;
157
- expect ( code ) . to . contain ( 'function add_css ()' ) ;
157
+ expect ( code ) . to . contain ( 'function add_css()' ) ;
158
158
} )
159
159
) ;
160
160
@@ -164,7 +164,7 @@ describe('loader', () => {
164
164
'test/fixtures/css.html' ,
165
165
function ( err , code , map ) {
166
166
expect ( err ) . not . to . exist ;
167
- expect ( code ) . not . to . contain ( 'function add_css ()' ) ;
167
+ expect ( code ) . not . to . contain ( 'function add_css()' ) ;
168
168
} ,
169
169
{ css : false }
170
170
)
@@ -208,7 +208,7 @@ describe('loader', () => {
208
208
testLoader ( 'test/fixtures/good.html' , function ( err , code , map ) {
209
209
expect ( err ) . not . to . exist ;
210
210
211
- expect ( code ) . not . to . contain ( '.render = function ( root , options ) {' ) ;
211
+ expect ( code ) . not . to . contain ( '.render = function(state , options = {} ) {' ) ;
212
212
} )
213
213
) ;
214
214
@@ -219,7 +219,7 @@ describe('loader', () => {
219
219
function ( err , code , map ) {
220
220
expect ( err ) . not . to . exist ;
221
221
222
- expect ( code ) . to . contain ( '.render = function ( state, options ) {' ) ;
222
+ expect ( code ) . to . contain ( '.render = function( state, options = {} ) {' ) ;
223
223
} ,
224
224
{ generate : 'ssr' }
225
225
)
0 commit comments