diff options
Diffstat (limited to 'spec')
-rwxr-xr-x | spec/spec/element.js | 5 |
1 files changed, 5 insertions, 0 deletions
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('<circle r="300"></rect>') + expect(result).toBe('<rect width="100" height="100"></rect>') + }) }) }) }) |