summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rwxr-xr-xspec/spec/element.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/spec/element.js b/spec/spec/element.js
index ae443f7..064c1e8 100755
--- a/spec/spec/element.js
+++ b/spec/spec/element.js
@@ -391,5 +391,10 @@ describe('Element', function() {
element.toggleClass('one')
expect(element.hasClass('one')).toBeFalsy()
})
+
+ it('returns the svg instance', function() {
+ var element = draw.rect(100,100)
+ expect(element.toggleClass('one')).toEqual(element)
+ })
})
})