From: Ulrich-Matthias Schäfer Date: Tue, 25 Apr 2017 13:15:39 +0000 (+0200) Subject: fix testcases X-Git-Tag: 3.0.0~82 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0e72ab27955ad7706157dd6fcc1ce1db091d65cf;p=svg.js.git fix testcases --- 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) }