From 8460b3b9fabe8129f38889282c9a3ad0dce50fc9 Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Tue, 29 Mar 2016 12:19:05 +0200 Subject: readme update, clean up --- spec/spec/fx.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'spec') diff --git a/spec/spec/fx.js b/spec/spec/fx.js index cbf96b3..d3c2457 100644 --- a/spec/spec/fx.js +++ b/spec/spec/fx.js @@ -216,18 +216,18 @@ describe('FX', function() { pos2 = true }, 800) - fx.duringAll(function(pos, morph, eased, fx2, situation){ + fx.duringAll(function(pos, morph, eased, situation){ if(pos1){ pos1 = false sit = situation - expect(fx2.pos).toBeGreaterThan(0.5) + expect(this.fx.pos).toBeGreaterThan(0.5) } if(pos2){ pos2 = null expect(situation).not.toBe(sit) - expect(fx2.pos).toBeGreaterThan(0.5) + expect(this.fx.pos).toBeGreaterThan(0.5) done() } }) @@ -244,7 +244,7 @@ describe('FX', function() { it('adds a callback which is called once at the specified position', function(done) { fx.start().once(0.5, function(pos, eased){ - expect(true).toBe(true) + expect(pos).toBeGreaterThan(0.49) done() }) }) -- cgit v1.2.3