fixed 2 tests

v1.18.x
barisusakli 11 years ago
parent 1cc15a71d6
commit 7a6f7d3e49

@ -130,8 +130,9 @@ var bcrypt = require('bcryptjs'),
}
if (!results.exists) {
return callback(new Error('user-deleted'));
return callback(new Error('invalid-user'));
}
var lastposttime = results.lastposttime;
if (!lastposttime) {
lastposttime = 0;

@ -56,6 +56,6 @@ describe('Categories', function() {
after(function() {
db.delete('category:' + categoryObj.cid);
db.listRemoveLast('categories:cid');
db.sortedSetRemove('categories:cid', categoryObj.cid);
});
});

Loading…
Cancel
Save