summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2016-03-28 17:49:08 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2016-03-29 00:18:14 +0200
commit541c6ecc8103313ed0a15a0b4d2593757b231e99 (patch)
treefe4dc1591c9ddc5931458f2757ab3a81c99fb510 /spec
parent1d0bb73385877d4ae14b175acd78565c48c4092d (diff)
downloadsvg.js-541c6ecc8103313ed0a15a0b4d2593757b231e99.tar.gz
svg.js-541c6ecc8103313ed0a15a0b4d2593757b231e99.zip
fix finishing up correctly with even loops, readme
Diffstat (limited to 'spec')
-rw-r--r--spec/spec/fx.js7
1 files changed, 6 insertions, 1 deletions
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() {