@@ -289,7 +289,7 @@ describe('Component keep-alive', () => {
289289 assertHookCalls ( two , [ 0 , 0 , 0 , 0 , 0 ] )
290290 } ) . thenWaitFor ( nextFrame ) . then ( ( ) => {
291291 expect ( vm . $el . innerHTML ) . toBe (
292- '<div class="test test-leave-active">one</div><!---->'
292+ '<div class="test test-leave-active test-leave-to ">one</div><!---->'
293293 )
294294 } ) . thenWaitFor ( _next => { next = _next } ) . then ( ( ) => {
295295 expect ( vm . $el . innerHTML ) . toBe ( '<!---->' )
@@ -301,7 +301,7 @@ describe('Component keep-alive', () => {
301301 assertHookCalls ( two , [ 1 , 1 , 1 , 0 , 0 ] )
302302 } ) . thenWaitFor ( nextFrame ) . then ( ( ) => {
303303 expect ( vm . $el . innerHTML ) . toBe (
304- '<div class="test test-enter-active">two</div>'
304+ '<div class="test test-enter-active test-enter-to ">two</div>'
305305 )
306306 } ) . thenWaitFor ( duration + buffer ) . then ( ( ) => {
307307 expect ( vm . $el . innerHTML ) . toBe (
@@ -319,7 +319,7 @@ describe('Component keep-alive', () => {
319319 assertHookCalls ( two , [ 1 , 1 , 1 , 1 , 0 ] )
320320 } ) . thenWaitFor ( nextFrame ) . then ( ( ) => {
321321 expect ( vm . $el . innerHTML ) . toBe (
322- '<div class="test test-leave-active">two</div><!---->'
322+ '<div class="test test-leave-active test-leave-to ">two</div><!---->'
323323 )
324324 } ) . thenWaitFor ( _next => { next = _next } ) . then ( ( ) => {
325325 expect ( vm . $el . innerHTML ) . toBe ( '<!---->' )
@@ -331,7 +331,7 @@ describe('Component keep-alive', () => {
331331 assertHookCalls ( two , [ 1 , 1 , 1 , 1 , 0 ] )
332332 } ) . thenWaitFor ( nextFrame ) . then ( ( ) => {
333333 expect ( vm . $el . innerHTML ) . toBe (
334- '<div class="test test-enter-active">one</div>'
334+ '<div class="test test-enter-active test-enter-to ">one</div>'
335335 )
336336 } ) . thenWaitFor ( duration + buffer ) . then ( ( ) => {
337337 expect ( vm . $el . innerHTML ) . toBe (
@@ -376,7 +376,7 @@ describe('Component keep-alive', () => {
376376 } ) . thenWaitFor ( nextFrame ) . then ( ( ) => {
377377 expect ( vm . $el . innerHTML ) . toBe (
378378 '<div class="test">one</div>' +
379- '<div class="test test-enter-active">two</div>'
379+ '<div class="test test-enter-active test-enter-to ">two</div>'
380380 )
381381 } ) . thenWaitFor ( _next => { next = _next } ) . then ( ( ) => {
382382 expect ( vm . $el . innerHTML ) . toBe (
@@ -390,7 +390,7 @@ describe('Component keep-alive', () => {
390390 )
391391 } ) . thenWaitFor ( nextFrame ) . then ( ( ) => {
392392 expect ( vm . $el . innerHTML ) . toBe (
393- '<div class="test test-leave-active">one</div>' +
393+ '<div class="test test-leave-active test-leave-to ">one</div>' +
394394 '<div class="test">two</div>'
395395 )
396396 } ) . thenWaitFor ( duration + buffer ) . then ( ( ) => {
@@ -411,7 +411,7 @@ describe('Component keep-alive', () => {
411411 } ) . thenWaitFor ( nextFrame ) . then ( ( ) => {
412412 expect ( vm . $el . innerHTML ) . toBe (
413413 '<div class="test">two</div>' +
414- '<div class="test test-enter-active">one</div>'
414+ '<div class="test test-enter-active test-enter-to ">one</div>'
415415 )
416416 } ) . thenWaitFor ( _next => { next = _next } ) . then ( ( ) => {
417417 expect ( vm . $el . innerHTML ) . toBe (
@@ -425,7 +425,7 @@ describe('Component keep-alive', () => {
425425 )
426426 } ) . thenWaitFor ( nextFrame ) . then ( ( ) => {
427427 expect ( vm . $el . innerHTML ) . toBe (
428- '<div class="test test-leave-active">two</div>' +
428+ '<div class="test test-leave-active test-leave-to ">two</div>' +
429429 '<div class="test">one</div>'
430430 )
431431 } ) . thenWaitFor ( duration + buffer ) . then ( ( ) => {
@@ -465,7 +465,7 @@ describe('Component keep-alive', () => {
465465 } ) . thenWaitFor ( nextFrame ) . then ( ( ) => {
466466 expect ( vm . $el . innerHTML ) . toBe (
467467 '<div class="test">one</div>' +
468- '<div class="test test-enter-active">two</div>'
468+ '<div class="test test-enter-active test-enter-to ">two</div>'
469469 )
470470 // switch again before enter finishes,
471471 // this cancels both enter and leave.
@@ -481,7 +481,7 @@ describe('Component keep-alive', () => {
481481 } ) . thenWaitFor ( nextFrame ) . then ( ( ) => {
482482 expect ( vm . $el . innerHTML ) . toBe (
483483 '<div class="test">two</div>' +
484- '<div class="test test-enter-active">one</div>'
484+ '<div class="test test-enter-active test-enter-to ">one</div>'
485485 )
486486 } ) . thenWaitFor ( _next => { next = _next } ) . then ( ( ) => {
487487 expect ( vm . $el . innerHTML ) . toBe (
@@ -495,7 +495,7 @@ describe('Component keep-alive', () => {
495495 )
496496 } ) . thenWaitFor ( nextFrame ) . then ( ( ) => {
497497 expect ( vm . $el . innerHTML ) . toBe (
498- '<div class="test test-leave-active">two</div>' +
498+ '<div class="test test-leave-active test-leave-to ">two</div>' +
499499 '<div class="test">one</div>'
500500 )
501501 } ) . thenWaitFor ( duration + buffer ) . then ( ( ) => {
@@ -532,8 +532,8 @@ describe('Component keep-alive', () => {
532532 )
533533 } ) . thenWaitFor ( nextFrame ) . then ( ( ) => {
534534 expect ( vm . $el . innerHTML ) . toBe (
535- '<div class="test v-leave-active">foo</div>' +
536- '<div class="test test-enter-active">bar</div>'
535+ '<div class="test v-leave-active v-leave-to ">foo</div>' +
536+ '<div class="test test-enter-active test-enter-to ">bar</div>'
537537 )
538538 } ) . thenWaitFor ( duration + buffer ) . then ( ( ) => {
539539 expect ( vm . $el . innerHTML ) . toBe (
@@ -547,8 +547,8 @@ describe('Component keep-alive', () => {
547547 )
548548 } ) . thenWaitFor ( nextFrame ) . then ( ( ) => {
549549 expect ( vm . $el . innerHTML ) . toBe (
550- '<div class="test test-leave-active">bar</div>' +
551- '<div class="test v-enter-active">foo</div>'
550+ '<div class="test test-leave-active test-leave-to ">bar</div>' +
551+ '<div class="test v-enter-active v-enter-to ">foo</div>'
552552 )
553553 } ) . thenWaitFor ( duration + buffer ) . then ( ( ) => {
554554 expect ( vm . $el . innerHTML ) . toBe (
0 commit comments