summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-01-26 17:50:45 +0100
committerwout <wout@impinc.co.uk>2014-01-26 17:50:45 +0100
commit22212053f79344f2f11f77e699f7f307a25eb9a9 (patch)
treee6a02dfc8b440f2048fc7b3ffea86e6eed3a50ed /spec
parenta6aacddee1b7e62101aa2d7e6ed9bc41b61f99a6 (diff)
downloadsvg.js-22212053f79344f2f11f77e699f7f307a25eb9a9.tar.gz
svg.js-22212053f79344f2f11f77e699f7f307a25eb9a9.zip
Added get to SVG.Set, bumped to v0.37
Diffstat (limited to 'spec')
-rw-r--r--spec/spec/set.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/spec/set.js b/spec/spec/set.js
index 03b8f31..2a149df 100644
--- a/spec/spec/set.js
+++ b/spec/spec/set.js
@@ -73,6 +73,20 @@ describe('Set', function() {
})
})
+ describe('get()', function() {
+ it('returns member ar given index', function() {
+ set.add(e1).add(e2).add(e3).add(e4).add(e5)
+ expect(set.get(2)).toBe(e3)
+ })
+ })
+
+ describe('has()', function() {
+ it('checks if a given element is present in set', function() {
+ set.add(e1).add(e2).add(e3).add(e4).add(e5)
+ expect(set.has(e4)).toBe(true)
+ })
+ })
+
describe('valueOf()', function() {
it('returns the members array', function() {
set.add(e1)