summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorPatrick Klingemann <patrick.klingemann@gmail.com>2014-06-09 13:59:53 -0400
committerPatrick Klingemann <patrick.klingemann@gmail.com>2014-06-09 13:59:53 -0400
commitc13717a8d8d85e5d1d408e27a6db881fe773cc04 (patch)
tree6693bb631dab6a126fdc214d537856c4ae9ac8f7 /spec
parent63d88467de624a48680d68a57752273934f13534 (diff)
downloadsvg.js-c13717a8d8d85e5d1d408e27a6db881fe773cc04.tar.gz
svg.js-c13717a8d8d85e5d1d408e27a6db881fe773cc04.zip
toggleClass returns the svg instance
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)
+ })
})
})