diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-04-25 15:15:39 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-04-25 15:15:39 +0200 |
commit | 0e72ab27955ad7706157dd6fcc1ce1db091d65cf (patch) | |
tree | f37c5688ce05904b801c1a1d0a93c48f640e1d10 | |
parent | 5816fdb903476762394d6c52d15e5bc38e135bfd (diff) | |
download | svg.js-0e72ab27955ad7706157dd6fcc1ce1db091d65cf.tar.gz svg.js-0e72ab27955ad7706157dd6fcc1ce1db091d65cf.zip |
fix testcases
-rw-r--r-- | spec/spec/svg.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/spec/svg.js b/spec/spec/svg.js index 5203544..37fecfb 100644 --- a/spec/spec/svg.js +++ b/spec/spec/svg.js @@ -53,7 +53,7 @@ describe('SVG', function() { expect(draw.rect(100,100).soft().attr('opacity')).toBe(0.2) }) it('accepts and extend multiple modules at once', function() { - SVG.extend(SVG.Rect, SVG.Ellipse, SVG.Path, { + SVG.extend([SVG.Rect, SVG.Ellipse, SVG.Path], { soft: function() { return this.opacity(0.5) } @@ -67,7 +67,7 @@ describe('SVG', function() { expect(draw.path().soft().attr('opacity')).toBe(0.5) }) it('ignores non existant objects', function() { - SVG.extend(SVG.Rect, SVG.Bogus, { + SVG.extend([SVG.Rect, SVG.Bogus], { soft: function() { return this.opacity(0.3) } |