]> source.dussan.org Git - svg.js.git/commitdiff
Fix the test of SVG.FX.afterAll 534/head
authorRémi Tétreault <tetreault.remi@gmail.com>
Sun, 16 Oct 2016 00:40:19 +0000 (20:40 -0400)
committerRémi Tétreault <tetreault.remi@gmail.com>
Sun, 16 Oct 2016 00:40:19 +0000 (20:40 -0400)
spec/spec/fx.js

index c985df1e6c7811793102997f5bc75684246f5425..cca5f843d20df66bdc5420e56848e054873254df 100644 (file)
@@ -170,7 +170,7 @@ describe('FX', function() {
 
   describe('afterAll()', function() {
     it('adds a callback which is called when all animations are finished', function(done) {
-      fx.start().after(function(){
+      fx.animate(150).animate(125).start().afterAll(function(){
         expect(fx.pos).toBe(1)
         expect(fx.situations.length).toBe(0)
         done()