Skip to content

Commit fda6427

Browse files
committed
Merge branch 'master' into widgetic-master
2 parents 3d91717 + b6746d8 commit fda6427

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/loader.spec.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ describe('loader', () => {
154154
'should configure css (default)',
155155
testLoader('test/fixtures/css.html', function(err, code, map) {
156156
expect(err).not.to.exist;
157-
expect(code).to.contain('function add_css ()');
157+
expect(code).to.contain('function add_css()');
158158
})
159159
);
160160

@@ -164,7 +164,7 @@ describe('loader', () => {
164164
'test/fixtures/css.html',
165165
function(err, code, map) {
166166
expect(err).not.to.exist;
167-
expect(code).not.to.contain('function add_css ()');
167+
expect(code).not.to.contain('function add_css()');
168168
},
169169
{ css: false }
170170
)
@@ -208,7 +208,7 @@ describe('loader', () => {
208208
testLoader('test/fixtures/good.html', function(err, code, map) {
209209
expect(err).not.to.exist;
210210

211-
expect(code).not.to.contain('.render = function ( root, options ) {');
211+
expect(code).not.to.contain('.render = function(state, options = {}) {');
212212
})
213213
);
214214

@@ -219,7 +219,7 @@ describe('loader', () => {
219219
function(err, code, map) {
220220
expect(err).not.to.exist;
221221

222-
expect(code).to.contain('.render = function ( state, options ) {');
222+
expect(code).to.contain('.render = function(state, options = {}) {');
223223
},
224224
{ generate: 'ssr' }
225225
)

0 commit comments

Comments
 (0)