@@ -283,7 +283,7 @@ describe('Component keep-alive', () => {
283
283
vm . view = 'two'
284
284
waitForUpdate ( ( ) => {
285
285
expect ( vm . $el . innerHTML ) . toBe (
286
- '<div class="test test-leave">one</div><!---->'
286
+ '<div class="test test-leave test-leave-active ">one</div><!---->'
287
287
)
288
288
assertHookCalls ( one , [ 1 , 1 , 1 , 1 , 0 ] )
289
289
assertHookCalls ( two , [ 0 , 0 , 0 , 0 , 0 ] )
@@ -295,7 +295,7 @@ describe('Component keep-alive', () => {
295
295
expect ( vm . $el . innerHTML ) . toBe ( '<!---->' )
296
296
} ) . thenWaitFor ( nextFrame ) . then ( ( ) => {
297
297
expect ( vm . $el . innerHTML ) . toBe (
298
- '<div class="test test-enter">two</div>'
298
+ '<div class="test test-enter test-enter-active ">two</div>'
299
299
)
300
300
assertHookCalls ( one , [ 1 , 1 , 1 , 1 , 0 ] )
301
301
assertHookCalls ( two , [ 1 , 1 , 1 , 0 , 0 ] )
@@ -313,7 +313,7 @@ describe('Component keep-alive', () => {
313
313
vm . view = 'one'
314
314
} ) . then ( ( ) => {
315
315
expect ( vm . $el . innerHTML ) . toBe (
316
- '<div class="test test-leave">two</div><!---->'
316
+ '<div class="test test-leave test-leave-active ">two</div><!---->'
317
317
)
318
318
assertHookCalls ( one , [ 1 , 1 , 1 , 1 , 0 ] )
319
319
assertHookCalls ( two , [ 1 , 1 , 1 , 1 , 0 ] )
@@ -325,7 +325,7 @@ describe('Component keep-alive', () => {
325
325
expect ( vm . $el . innerHTML ) . toBe ( '<!---->' )
326
326
} ) . thenWaitFor ( nextFrame ) . then ( ( ) => {
327
327
expect ( vm . $el . innerHTML ) . toBe (
328
- '<div class="test test-enter">one</div>'
328
+ '<div class="test test-enter test-enter-active ">one</div>'
329
329
)
330
330
assertHookCalls ( one , [ 1 , 1 , 2 , 1 , 0 ] )
331
331
assertHookCalls ( two , [ 1 , 1 , 1 , 1 , 0 ] )
@@ -369,7 +369,7 @@ describe('Component keep-alive', () => {
369
369
waitForUpdate ( ( ) => {
370
370
expect ( vm . $el . innerHTML ) . toBe (
371
371
'<div class="test">one</div>' +
372
- '<div class="test test-enter">two</div>'
372
+ '<div class="test test-enter test-enter-active ">two</div>'
373
373
)
374
374
assertHookCalls ( one , [ 1 , 1 , 1 , 1 , 0 ] )
375
375
assertHookCalls ( two , [ 1 , 1 , 1 , 0 , 0 ] )
@@ -385,7 +385,7 @@ describe('Component keep-alive', () => {
385
385
)
386
386
} ) . then ( ( ) => {
387
387
expect ( vm . $el . innerHTML ) . toBe (
388
- '<div class="test test-leave">one</div>' +
388
+ '<div class="test test-leave test-leave-active ">one</div>' +
389
389
'<div class="test">two</div>'
390
390
)
391
391
} ) . thenWaitFor ( nextFrame ) . then ( ( ) => {
@@ -404,7 +404,7 @@ describe('Component keep-alive', () => {
404
404
} ) . then ( ( ) => {
405
405
expect ( vm . $el . innerHTML ) . toBe (
406
406
'<div class="test">two</div>' +
407
- '<div class="test test-enter">one</div>'
407
+ '<div class="test test-enter test-enter-active ">one</div>'
408
408
)
409
409
assertHookCalls ( one , [ 1 , 1 , 2 , 1 , 0 ] )
410
410
assertHookCalls ( two , [ 1 , 1 , 1 , 1 , 0 ] )
@@ -420,7 +420,7 @@ describe('Component keep-alive', () => {
420
420
)
421
421
} ) . then ( ( ) => {
422
422
expect ( vm . $el . innerHTML ) . toBe (
423
- '<div class="test test-leave">two</div>' +
423
+ '<div class="test test-leave test-leave-active ">two</div>' +
424
424
'<div class="test">one</div>'
425
425
)
426
426
} ) . thenWaitFor ( nextFrame ) . then ( ( ) => {
@@ -460,7 +460,7 @@ describe('Component keep-alive', () => {
460
460
waitForUpdate ( ( ) => {
461
461
expect ( vm . $el . innerHTML ) . toBe (
462
462
'<div class="test">one</div>' +
463
- '<div class="test test-enter">two</div>'
463
+ '<div class="test test-enter test-enter-active ">two</div>'
464
464
)
465
465
} ) . thenWaitFor ( nextFrame ) . then ( ( ) => {
466
466
expect ( vm . $el . innerHTML ) . toBe (
@@ -476,7 +476,7 @@ describe('Component keep-alive', () => {
476
476
// 3. a new "one" is created and entering
477
477
expect ( vm . $el . innerHTML ) . toBe (
478
478
'<div class="test">two</div>' +
479
- '<div class="test test-enter">one</div>'
479
+ '<div class="test test-enter test-enter-active ">one</div>'
480
480
)
481
481
} ) . thenWaitFor ( nextFrame ) . then ( ( ) => {
482
482
expect ( vm . $el . innerHTML ) . toBe (
@@ -490,7 +490,7 @@ describe('Component keep-alive', () => {
490
490
)
491
491
} ) . then ( ( ) => {
492
492
expect ( vm . $el . innerHTML ) . toBe (
493
- '<div class="test test-leave">two</div>' +
493
+ '<div class="test test-leave test-leave-active ">two</div>' +
494
494
'<div class="test">one</div>'
495
495
)
496
496
} ) . thenWaitFor ( nextFrame ) . then ( ( ) => {
@@ -527,8 +527,8 @@ describe('Component keep-alive', () => {
527
527
vm . view = 'bar'
528
528
waitForUpdate ( ( ) => {
529
529
expect ( vm . $el . innerHTML ) . toBe (
530
- '<div class="test v-leave">foo</div>' +
531
- '<div class="test test-enter">bar</div>'
530
+ '<div class="test v-leave v-leave-active ">foo</div>' +
531
+ '<div class="test test-enter test-enter-active ">bar</div>'
532
532
)
533
533
} ) . thenWaitFor ( nextFrame ) . then ( ( ) => {
534
534
expect ( vm . $el . innerHTML ) . toBe (
@@ -542,8 +542,8 @@ describe('Component keep-alive', () => {
542
542
vm . view = 'foo'
543
543
} ) . then ( ( ) => {
544
544
expect ( vm . $el . innerHTML ) . toBe (
545
- '<div class="test test-leave">bar</div>' +
546
- '<div class="test v-enter">foo</div>'
545
+ '<div class="test test-leave test-leave-active ">bar</div>' +
546
+ '<div class="test v-enter v-enter-active ">foo</div>'
547
547
)
548
548
} ) . thenWaitFor ( nextFrame ) . then ( ( ) => {
549
549
expect ( vm . $el . innerHTML ) . toBe (
0 commit comments