mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
fixed 2 tests
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user