@@ -82,7 +82,7 @@ describe('v-for staggering transitions', function () {
82
82
expect ( el . innerHTML ) . toBe ( '' )
83
83
_ . nextTick ( function ( ) {
84
84
expect ( el . children . length ) . toBe ( 1 )
85
- expect ( el . children [ 0 ] . className ) . toBe ( 'stagger-transition stagger-enter' )
85
+ expect ( el . children [ 0 ] . className ) . toBe ( 'stagger-transition stagger-enter stagger-enter-active ' )
86
86
expect ( el . children [ 0 ] . textContent ) . toBe ( '1' )
87
87
vm . list = [ vm . list [ 0 ] ] // remove second
88
88
setTimeout ( function ( ) {
@@ -115,7 +115,7 @@ describe('v-for staggering transitions', function () {
115
115
expect ( el . innerHTML ) . toBe ( '' )
116
116
_ . nextTick ( function ( ) {
117
117
expect ( el . children . length ) . toBe ( 1 )
118
- expect ( el . children [ 0 ] . className ) . toBe ( 'stagger-transition stagger-enter' )
118
+ expect ( el . children [ 0 ] . className ) . toBe ( 'stagger-transition stagger-enter stagger-enter-active ' )
119
119
expect ( el . children [ 0 ] . textContent ) . toBe ( '1' )
120
120
vm . list = [ vm . list [ 2 ] , vm . list [ 1 ] , vm . list [ 0 ] ] // reorder
121
121
setTimeout ( function ( ) {
@@ -135,7 +135,7 @@ describe('v-for staggering transitions', function () {
135
135
expect ( el . innerHTML ) . toBe ( '' )
136
136
_ . nextTick ( function ( ) {
137
137
expect ( el . children . length ) . toBe ( 1 )
138
- expect ( el . children [ 0 ] . className ) . toBe ( 'stagger-transition stagger-enter' )
138
+ expect ( el . children [ 0 ] . className ) . toBe ( 'stagger-transition stagger-enter stagger-enter-active ' )
139
139
expect ( el . children [ 0 ] . textContent ) . toBe ( '1' )
140
140
_ . nextTick ( function ( ) {
141
141
expect ( el . innerHTML ) . toBe ( '<div class="stagger-transition">1</div>' )
@@ -147,7 +147,7 @@ describe('v-for staggering transitions', function () {
147
147
vm . list = [ ]
148
148
_ . nextTick ( function ( ) {
149
149
expect ( el . children . length ) . toBe ( 2 )
150
- expect ( el . children [ 0 ] . className ) . toBe ( 'stagger-transition stagger-leave' )
150
+ expect ( el . children [ 0 ] . className ) . toBe ( 'stagger-transition stagger-leave stagger-leave-active ' )
151
151
expect ( el . children [ 0 ] . textContent ) . toBe ( '1' )
152
152
expect ( el . children [ 1 ] . className ) . toBe ( 'stagger-transition' )
153
153
expect ( el . children [ 1 ] . textContent ) . toBe ( '2' )
0 commit comments