diff options
author | Patrick Klingemann <patrick.klingemann@gmail.com> | 2014-06-09 13:59:53 -0400 |
---|---|---|
committer | Patrick Klingemann <patrick.klingemann@gmail.com> | 2014-06-09 13:59:53 -0400 |
commit | c13717a8d8d85e5d1d408e27a6db881fe773cc04 (patch) | |
tree | 6693bb631dab6a126fdc214d537856c4ae9ac8f7 /spec | |
parent | 63d88467de624a48680d68a57752273934f13534 (diff) | |
download | svg.js-c13717a8d8d85e5d1d408e27a6db881fe773cc04.tar.gz svg.js-c13717a8d8d85e5d1d408e27a6db881fe773cc04.zip |
toggleClass returns the svg instance
Diffstat (limited to 'spec')
-rwxr-xr-x | spec/spec/element.js | 5 |
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) + }) }) }) |