From 48ee8c1370a5d20c7bfbc3f320a60bd758a58247 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sun, 30 Nov 2014 15:36:17 -0500 Subject: [PATCH] check err in tests --- tests/groups.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/groups.js b/tests/groups.js index d1f1e2e35e..ec73e3397a 100644 --- a/tests/groups.js +++ b/tests/groups.js @@ -76,6 +76,7 @@ describe('Groups', function() { describe('.search()', function() { it('should return the "Test" group when searched for', function(done) { Groups.search('test', {}, function(err, groups) { + if (err) return done(err); assert.equal(1, groups.length); assert.strictEqual('Test', groups[0].name); done(); @@ -86,6 +87,7 @@ describe('Groups', function() { Groups.search('hidden', { showAllGroups: true }, function(err, groups) { + if (err) return done(err); assert.equal(1, groups.length); assert.strictEqual('Hidden', groups[0].name); done();