From: Rémi Tétreault Date: Sun, 16 Oct 2016 00:40:19 +0000 (-0400) Subject: Fix the test of SVG.FX.afterAll X-Git-Tag: 2.3.6~13^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=97d97fbc5d95f081abdc7e85fc2f47172d6bea73;p=svg.js.git Fix the test of SVG.FX.afterAll --- diff --git a/spec/spec/fx.js b/spec/spec/fx.js index c985df1..cca5f84 100644 --- a/spec/spec/fx.js +++ b/spec/spec/fx.js @@ -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()