From c2d1b2916b38d111d8672826c1219ab891567798 Mon Sep 17 00:00:00 2001 From: wout Date: Fri, 1 Aug 2014 15:52:37 +0200 Subject: [PATCH] Added one more spec on raw importing --- spec/spec/element.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/spec/element.js b/spec/spec/element.js index 1e190e4..d7eae4a 100755 --- a/spec/spec/element.js +++ b/spec/spec/element.js @@ -528,6 +528,11 @@ describe('Element', function() { expect(draw.get(0).get(1).type).toBe('circle') expect(draw.get(0).get(1).attr('fill')).toBe('#ff0066') }) + it('does not import on single elements, even with an argument it acts as a getter', function() { + var rect = draw.rect(100,100).id(null) + , result = rect.svg('') + expect(result).toBe('') + }) }) }) }) -- 2.39.5