diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec/element.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/spec/element.js b/spec/spec/element.js index 03f8db7..757025a 100644 --- a/spec/spec/element.js +++ b/spec/spec/element.js @@ -60,6 +60,10 @@ describe('Element', function() { rect.attr('style', 'cursor:move;') expect(rect.node.getAttribute('style')).toBe('cursor:move;') }) + it('should remove style attribute on node if the style is empty', function() { + rect.style('style', '') + expect(rect.node.getAttribute('style')).toBe(null) + }) }) describe('style()', function() { |