@@ -82,12 +82,12 @@ describe('v-for staggering transitions', function () {
8282 expect ( el . innerHTML ) . toBe ( '' )
8383 _ . nextTick ( function ( ) {
8484 expect ( el . children . length ) . toBe ( 1 )
85- expect ( el . children [ 0 ] . className ) . toBe ( 'stagger-enter' )
85+ expect ( el . children [ 0 ] . className ) . toBe ( 'stagger-transition stagger- enter' )
8686 expect ( el . children [ 0 ] . textContent ) . toBe ( '1' )
8787 vm . list = [ vm . list [ 0 ] ] // remove second
8888 setTimeout ( function ( ) {
8989 // should have only one
90- expect ( el . innerHTML ) . toBe ( '<div transition ="stagger">1</div>' )
90+ expect ( el . innerHTML ) . toBe ( '<div class ="stagger-transition ">1</div>' )
9191 done ( )
9292 } , delayAmount * multiplier )
9393 } )
@@ -115,15 +115,15 @@ describe('v-for staggering transitions', function () {
115115 expect ( el . innerHTML ) . toBe ( '' )
116116 _ . nextTick ( function ( ) {
117117 expect ( el . children . length ) . toBe ( 1 )
118- expect ( el . children [ 0 ] . className ) . toBe ( 'stagger-enter' )
118+ expect ( el . children [ 0 ] . className ) . toBe ( 'stagger-transition stagger- enter' )
119119 expect ( el . children [ 0 ] . textContent ) . toBe ( '1' )
120120 vm . list = [ vm . list [ 2 ] , vm . list [ 1 ] , vm . list [ 0 ] ] // reorder
121121 setTimeout ( function ( ) {
122122 // should have correct order
123123 expect ( el . innerHTML ) . toBe (
124- '<div transition ="stagger">3</div>' +
125- '<div transition ="stagger">2</div>' +
126- '<div transition ="stagger">1</div>'
124+ '<div class ="stagger-transition ">3</div>' +
125+ '<div class ="stagger-transition ">2</div>' +
126+ '<div class ="stagger-transition ">1</div>'
127127 )
128128 done ( )
129129 } , delayAmount * 3 )
@@ -135,24 +135,24 @@ describe('v-for staggering transitions', function () {
135135 expect ( el . innerHTML ) . toBe ( '' )
136136 _ . nextTick ( function ( ) {
137137 expect ( el . children . length ) . toBe ( 1 )
138- expect ( el . children [ 0 ] . className ) . toBe ( 'stagger-enter' )
138+ expect ( el . children [ 0 ] . className ) . toBe ( 'stagger-transition stagger- enter' )
139139 expect ( el . children [ 0 ] . textContent ) . toBe ( '1' )
140140 _ . nextTick ( function ( ) {
141- expect ( el . innerHTML ) . toBe ( '<div transition ="stagger">1</div>' )
141+ expect ( el . innerHTML ) . toBe ( '<div class ="stagger-transition ">1</div>' )
142142 setTimeout ( function ( ) {
143143 expect ( el . innerHTML ) . toBe (
144- '<div transition ="stagger">1</div>' +
145- '<div transition ="stagger">2</div>'
144+ '<div class ="stagger-transition ">1</div>' +
145+ '<div class ="stagger-transition ">2</div>'
146146 )
147147 vm . list = [ ]
148148 _ . nextTick ( function ( ) {
149149 expect ( el . children . length ) . toBe ( 2 )
150- expect ( el . children [ 0 ] . className ) . toBe ( 'stagger-leave' )
150+ expect ( el . children [ 0 ] . className ) . toBe ( 'stagger-transition stagger- leave' )
151151 expect ( el . children [ 0 ] . textContent ) . toBe ( '1' )
152- expect ( el . children [ 1 ] . className ) . toBe ( '' )
152+ expect ( el . children [ 1 ] . className ) . toBe ( 'stagger-transition ' )
153153 expect ( el . children [ 1 ] . textContent ) . toBe ( '2' )
154154 _ . nextTick ( function ( ) {
155- expect ( el . innerHTML ) . toBe ( '<div transition ="stagger">2</div>' )
155+ expect ( el . innerHTML ) . toBe ( '<div class ="stagger-transition ">2</div>' )
156156 setTimeout ( function ( ) {
157157 expect ( el . innerHTML ) . toBe ( '' )
158158 done ( )
0 commit comments