mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
fix: broken tests from api change
This commit is contained in:
@@ -805,6 +805,7 @@ describe('User', function () {
|
||||
groupTitle: 'testGroup',
|
||||
birthday: '01/01/1980',
|
||||
signature: 'nodebb is good',
|
||||
password: '123456',
|
||||
};
|
||||
socketUser.updateProfile({ uid: uid }, data, function (err, result) {
|
||||
assert.ifError(err);
|
||||
@@ -816,7 +817,11 @@ describe('User', function () {
|
||||
db.getObject('user:' + uid, function (err, userData) {
|
||||
assert.ifError(err);
|
||||
Object.keys(data).forEach(function (key) {
|
||||
assert.equal(data[key], userData[key]);
|
||||
if (key !== 'password') {
|
||||
assert.equal(data[key], userData[key]);
|
||||
} else {
|
||||
assert(userData[key].startsWith('$2a$'));
|
||||
}
|
||||
});
|
||||
done();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user