summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorRémi Tétreault <tetreault.remi@gmail.com>2017-02-24 18:08:17 -0500
committerRémi Tétreault <tetreault.remi@gmail.com>2017-02-25 16:54:49 -0500
commitef7451dd477e1835d92f3de493029225fa55d603 (patch)
treea5dc65c30df06a5a883a1555c9e9316e178029d7 /spec
parent01f576d8eb04fd62ba288f6667a36e073dc9f0f9 (diff)
downloadsvg.js-ef7451dd477e1835d92f3de493029225fa55d603.tar.gz
svg.js-ef7451dd477e1835d92f3de493029225fa55d603.zip
Correct some tests for the at_ methods of the FX module
In the first test of both the methods atStart and atEnd, `this` should instead be `fx`.
Diffstat (limited to 'spec')
-rw-r--r--spec/spec/fx.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/spec/fx.js b/spec/spec/fx.js
index 3875681..75e2fa8 100644
--- a/spec/spec/fx.js
+++ b/spec/spec/fx.js
@@ -90,11 +90,11 @@ describe('FX', function() {
describe('atStart()', function () {
it('sets the animation at the start', function() {
// When the animation is running forward, the start position is 0
- this.pos = 0.5
+ fx.pos = 0.5
expect(fx.atStart().pos).toBe(0)
// When the animation is running backward, the start position is 1
- this.pos = 0.5
+ fx.pos = 0.5
expect(fx.reverse(true).atStart().pos).toBe(1)
})
@@ -161,7 +161,7 @@ describe('FX', function() {
describe('atEnd()', function () {
it('sets the animation at the end', function() {
// When the animation is running forward, the end position is 1
- this.pos = 0.5
+ fx.pos = 0.5
expect(fx.atEnd().pos).toBe(1)
expect(fx.situation).toBeNull()
@@ -169,7 +169,7 @@ describe('FX', function() {
fx.animate()
// When the animation is running backward, the end position is 0
- this.pos = 0.5
+ fx.pos = 0.5
expect(fx.reverse(true).atEnd().pos).toBe(0)
expect(fx.situation).toBeNull()
})