From 0e72ab27955ad7706157dd6fcc1ce1db091d65cf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ulrich-Matthias=20Sch=C3=A4fer?= Date: Tue, 25 Apr 2017 15:15:39 +0200 Subject: [PATCH] fix testcases --- spec/spec/svg.js | 4 ++-- 1 file 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) } -- 2.39.5