Skip to content

Commit c7c503f

Browse files
committed
added groups.exists([]) test
1 parent e1392fd commit c7c503f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/groups.js

+10
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,16 @@ describe('Groups', function() {
139139
done();
140140
});
141141
});
142+
143+
it('should check if group exists using an array', function(done) {
144+
Groups.exists(['Test', 'Derp'], function(err, groupsExists) {
145+
if (err) return done(err);
146+
147+
assert.strictEqual(groupsExists[0], true);
148+
assert.strictEqual(groupsExists[1], false);
149+
done();
150+
});
151+
});
142152
});
143153

144154
describe('.create()', function() {

0 commit comments

Comments
 (0)