diff options
Diffstat (limited to 'spec')
-rwxr-xr-x | spec/spec/doc.js | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/spec/spec/doc.js b/spec/spec/doc.js index eabdd02..beedff7 100755 --- a/spec/spec/doc.js +++ b/spec/spec/doc.js @@ -21,22 +21,14 @@ describe('Doc', function() { }) }) - describe('remove() / destroy()', function() { - it('removes the doc from the dom (remove)', function() { + describe('remove()', function() { + it('removes the doc from the dom', function() { draw.remove() expect(draw.parent).toBeNull() expect(document.getElementsByTagName('body')[0].querySelectorAll('svg').length).toBe(1) draw = SVG(drawing).size(100,100); expect(document.getElementsByTagName('body')[0].querySelectorAll('svg').length).toBe(2) }) - - it('removes the doc from the dom (remove)', function() { - draw.destroy() - expect(draw.parent).toBeNull() - expect(document.getElementsByTagName('body')[0].querySelectorAll('svg').length).toBe(1) - draw = SVG(drawing).size(100,100); - expect(document.getElementsByTagName('body')[0].querySelectorAll('svg').length).toBe(2) - }) }) })
\ No newline at end of file |