diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2016-03-29 12:19:05 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2016-03-29 12:19:05 +0200 |
commit | 8460b3b9fabe8129f38889282c9a3ad0dce50fc9 (patch) | |
tree | 614449780bbaae93885098eec31e663178ee3878 /spec | |
parent | 1787f953b0708a405175968a8adc244dd5861d77 (diff) | |
download | svg.js-8460b3b9fabe8129f38889282c9a3ad0dce50fc9.tar.gz svg.js-8460b3b9fabe8129f38889282c9a3ad0dce50fc9.zip |
readme update, clean up
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec/fx.js | 8 |
1 files changed, 4 insertions, 4 deletions
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() }) }) |