mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-03 14:20:33 +01:00
added groups.exists([]) test
This commit is contained in:
@@ -139,6 +139,16 @@ describe('Groups', function() {
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('should check if group exists using an array', function(done) {
|
||||
Groups.exists(['Test', 'Derp'], function(err, groupsExists) {
|
||||
if (err) return done(err);
|
||||
|
||||
assert.strictEqual(groupsExists[0], true);
|
||||
assert.strictEqual(groupsExists[1], false);
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('.create()', function() {
|
||||
|
||||
Reference in New Issue
Block a user