@@ -33,9 +33,9 @@ describe('hot module replacement', () => {
33
33
} )
34
34
35
35
test ( 'createRecord' , ( ) => {
36
- expect ( createRecord ( 'test1' , { } ) ) . toBe ( true )
36
+ expect ( createRecord ( 'test1' ) ) . toBe ( true )
37
37
// if id has already been created, should return false
38
- expect ( createRecord ( 'test1' , { } ) ) . toBe ( false )
38
+ expect ( createRecord ( 'test1' ) ) . toBe ( false )
39
39
} )
40
40
41
41
test ( 'rerender' , async ( ) => {
@@ -47,7 +47,7 @@ describe('hot module replacement', () => {
47
47
__hmrId : childId ,
48
48
render : compileToFunction ( `<div><slot/></div>` )
49
49
}
50
- createRecord ( childId , Child )
50
+ createRecord ( childId )
51
51
52
52
const Parent : ComponentOptions = {
53
53
__hmrId : parentId ,
@@ -59,7 +59,7 @@ describe('hot module replacement', () => {
59
59
`<div @click="count++">{{ count }}<Child>{{ count }}</Child></div>`
60
60
)
61
61
}
62
- createRecord ( parentId , Parent )
62
+ createRecord ( parentId )
63
63
64
64
render ( h ( Parent ) , root )
65
65
expect ( serializeInner ( root ) ) . toBe ( `<div>0<div>0</div></div>` )
@@ -125,7 +125,7 @@ describe('hot module replacement', () => {
125
125
unmounted : unmountSpy ,
126
126
render : compileToFunction ( `<div @click="count++">{{ count }}</div>` )
127
127
}
128
- createRecord ( childId , Child )
128
+ createRecord ( childId )
129
129
130
130
const Parent : ComponentOptions = {
131
131
render : ( ) => h ( Child )
@@ -166,7 +166,7 @@ describe('hot module replacement', () => {
166
166
} ,
167
167
render : compileToFunction ( template )
168
168
}
169
- createRecord ( id , Comp )
169
+ createRecord ( id )
170
170
171
171
render ( h ( Comp ) , root )
172
172
expect ( serializeInner ( root ) ) . toBe (
@@ -203,14 +203,14 @@ describe('hot module replacement', () => {
203
203
} ,
204
204
render : compileToFunction ( `<div>{{ msg }}</div>` )
205
205
}
206
- createRecord ( childId , Child )
206
+ createRecord ( childId )
207
207
208
208
const Parent : ComponentOptions = {
209
209
__hmrId : parentId ,
210
210
components : { Child } ,
211
211
render : compileToFunction ( `<Child msg="foo" />` )
212
212
}
213
- createRecord ( parentId , Parent )
213
+ createRecord ( parentId )
214
214
215
215
render ( h ( Parent ) , root )
216
216
expect ( serializeInner ( root ) ) . toBe ( `<div>foo</div>` )
@@ -229,14 +229,14 @@ describe('hot module replacement', () => {
229
229
__hmrId : childId ,
230
230
render : compileToFunction ( `<div>child</div>` )
231
231
}
232
- createRecord ( childId , Child )
232
+ createRecord ( childId )
233
233
234
234
const Parent : ComponentOptions = {
235
235
__hmrId : parentId ,
236
236
components : { Child } ,
237
237
render : compileToFunction ( `<Child class="test" />` )
238
238
}
239
- createRecord ( parentId , Parent )
239
+ createRecord ( parentId )
240
240
241
241
render ( h ( Parent ) , root )
242
242
expect ( serializeInner ( root ) ) . toBe ( `<div class="test">child</div>` )
@@ -256,7 +256,7 @@ describe('hot module replacement', () => {
256
256
__hmrId : childId ,
257
257
render : compileToFunction ( `<div>child</div>` )
258
258
}
259
- createRecord ( childId , Child )
259
+ createRecord ( childId )
260
260
261
261
const components : ComponentOptions [ ] = [ ]
262
262
@@ -278,7 +278,7 @@ describe('hot module replacement', () => {
278
278
}
279
279
}
280
280
281
- createRecord ( parentId , parentComp )
281
+ createRecord ( parentId )
282
282
}
283
283
284
284
const last = components [ components . length - 1 ]
0 commit comments