summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/spec/container.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/spec/container.js b/spec/spec/container.js
index 9554ed6..24feb00 100644
--- a/spec/spec/container.js
+++ b/spec/spec/container.js
@@ -187,10 +187,10 @@ describe('Container', function() {
expect(draw.children().length).toBe(0)
})
it('should create a new defs node', function() {
+ var oldDefs = draw.defs()
draw.rect(100,100).maskWith(draw.circle(100, 100))
- expect(draw._defs instanceof SVG.Defs).toBe(true)
draw.clear()
- expect(draw._defs instanceof SVG.Defs).toBe(true)
+ expect(draw.defs()).not.toBe(oldDefs)
})
})