From ef7451dd477e1835d92f3de493029225fa55d603 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20T=C3=A9treault?= Date: Fri, 24 Feb 2017 18:08:17 -0500 Subject: [PATCH] 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`. --- spec/spec/fx.js | 8 ++++---- 1 file 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() }) -- 2.39.5