merge userdb.js into users.js
This commit is contained in:
@@ -159,11 +159,8 @@ describe('Users API', function () {
|
||||
userWithPassword.id = response.body.id;
|
||||
});
|
||||
|
||||
it('did set password of created user', function (done) {
|
||||
users.verify(userWithPassword.id, userWithPassword.password, users.AP_WEBADMIN, function (error) {
|
||||
expect(error).to.be(null);
|
||||
done();
|
||||
});
|
||||
it('did set password of created user', async function () {
|
||||
await users.verify(userWithPassword.id, userWithPassword.password, users.AP_WEBADMIN);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -398,11 +395,8 @@ describe('Users API', function () {
|
||||
expect(response.statusCode).to.equal(204);
|
||||
});
|
||||
|
||||
it('did change the user password', function (done) {
|
||||
users.verify(user.id, 'bigenough', users.AP_WEBADMIN, function (error) {
|
||||
expect(error).to.be(null);
|
||||
done();
|
||||
});
|
||||
it('did change the user password', async function () {
|
||||
await users.verify(user.id, 'bigenough', users.AP_WEBADMIN);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user