From 541c6ecc8103313ed0a15a0b4d2593757b231e99 Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Mon, 28 Mar 2016 17:49:08 +0200 Subject: fix finishing up correctly with even loops, readme --- spec/spec/fx.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'spec') diff --git a/spec/spec/fx.js b/spec/spec/fx.js index 27c1b32..cbf96b3 100644 --- a/spec/spec/fx.js +++ b/spec/spec/fx.js @@ -26,9 +26,14 @@ describe('FX', function() { }) describe('target()', function(){ - it('returns the current fx object', function(){ + it('returns the current fx object with no argument given', function(){ expect(fx.target()).toBe(rect) }) + + it('changes the target of the animation when parameter given', function(){ + var c = draw.circle(5) + expect(fx.target(c).target()).toBe(c) + }) }) describe('timeToPos()', function() { -- cgit v1.2.3