From dfffbace421b298561c698b3a36a4e1a3d825af7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 7 May 2015 14:15:28 -0400 Subject: [PATCH] fix test callback --- tests/user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/user.js b/tests/user.js index cb37c8e27c..82659ada90 100644 --- a/tests/user.js +++ b/tests/user.js @@ -257,7 +257,7 @@ describe('User', function() { describe('hash methods', function() { - it('should return uid from email', function(next) { + it('should return uid from email', function(done) { User.getUidByEmail('john@example.com', function(err, uid) { assert.ifError(err); assert.equal(parseInt(uid, 10), parseInt(testUid, 10)); @@ -265,7 +265,7 @@ describe('User', function() { }); }); - it('should return uid from username', function(next) { + it('should return uid from username', function(done) { User.getUidByUsername('John Smith', function(err, uid) { assert.ifError(err); assert.equal(parseInt(uid, 10), parseInt(testUid, 10)); @@ -273,7 +273,7 @@ describe('User', function() { }); }); - it('should return uid from userslug', function(next) { + it('should return uid from userslug', function(done) { User.getUidByUserslug('john-smith', function(err, uid) { assert.ifError(err); assert.equal(parseInt(uid, 10), parseInt(testUid, 10));