File tree 1 file changed +6
-4
lines changed 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -201,17 +201,19 @@ describe('router app destroy handling', () => {
201
201
202
202
it ( 'should remove 2nd destroyed app from this.apps' , ( ) => {
203
203
app2 . $destroy ( )
204
+ expect ( app1 . $router ) . toBeDefined ( )
205
+ expect ( app1 . $router . app ) . toBeDefined ( )
204
206
expect ( app1 . $router . app ) . toBe ( app1 )
205
207
expect ( app1 . $router . apps . length ) . toBe ( 2 )
206
- expect ( app1 . $router . app [ 0 ] ) . toBe ( app1 )
207
- expect ( app1 . $router . app [ 1 ] ) . toBe ( app3 )
208
+ expect ( app1 . $router . apps [ 0 ] ) . toBe ( app1 )
209
+ expect ( app1 . $router . apps [ 1 ] ) . toBe ( app3 )
208
210
} )
209
211
210
212
it ( 'should remove 1st destroyed app from this.apps and replace this.app' , ( ) => {
211
213
app1 . $destroy ( )
212
214
expect ( app3 . $router . app ) . toBe ( app3 )
213
215
expect ( app3 . $router . apps . length ) . toBe ( 1 )
214
- expect ( app3 . $router . app [ 0 ] ) . toBe ( app3 )
216
+ expect ( app3 . $router . apps [ 0 ] ) . toBe ( app3 )
215
217
} )
216
218
217
219
it ( 'should remove last destroyed app from this.apps' , ( ) => {
@@ -227,6 +229,6 @@ describe('router app destroy handling', () => {
227
229
} )
228
230
expect ( app4 . $router . app ) . toBe ( app4 )
229
231
expect ( app4 . $router . apps . length ) . toBe ( 1 )
230
- expect ( app4 . $router . app [ 0 ] ) . toBe ( app4 )
232
+ expect ( app4 . $router . apps [ 0 ] ) . toBe ( app4 )
231
233
} )
232
234
} )
You can’t perform that action at this time.
0 commit comments