File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ describe('Staggering Transitions', function () {
8686 // should have only one
8787 expect ( el . innerHTML ) . toBe ( '<div class="stagger-transition">1</div>' )
8888 done ( )
89- } , amount + 10 )
89+ } , amount * 2 )
9090 } )
9191 } )
9292
@@ -108,19 +108,20 @@ describe('Staggering Transitions', function () {
108108 }
109109 }
110110 } )
111- vm . list = [ { a : 1 } , { a : 2 } ]
111+ vm . list = [ { a : 1 } , { a : 2 } , { a : 3 } ]
112112 expect ( el . innerHTML ) . toBe ( '' )
113113 _ . nextTick ( function ( ) {
114114 expect ( el . innerHTML ) . toBe ( '<div class="stagger-transition stagger-enter">1</div>' )
115- vm . list = [ vm . list [ 1 ] , vm . list [ 0 ] ] // reorder
115+ vm . list = [ vm . list [ 2 ] , vm . list [ 1 ] , vm . list [ 0 ] ] // reorder
116116 setTimeout ( function ( ) {
117117 // should have correct order
118118 expect ( el . innerHTML ) . toBe (
119+ '<div class="stagger-transition">3</div>' +
119120 '<div class="stagger-transition">2</div>' +
120121 '<div class="stagger-transition">1</div>'
121122 )
122123 done ( )
123- } , amount + 10 )
124+ } , amount * 3 )
124125 } )
125126 } )
126127
@@ -147,10 +148,10 @@ describe('Staggering Transitions', function () {
147148 setTimeout ( function ( ) {
148149 expect ( el . innerHTML ) . toBe ( '' )
149150 done ( )
150- } , amount + 10 )
151+ } , amount * 2 )
151152 } )
152153 } )
153- } , amount + 10 )
154+ } , amount * 2 )
154155 } )
155156 } )
156157 }
You can’t perform that action at this time.
0 commit comments