more profileConfig rename
This commit is contained in:
@@ -226,10 +226,10 @@ describe('User', function () {
|
||||
expect(error.message).to.equal('email already exists');
|
||||
});
|
||||
|
||||
it('can update the user with already existing username', async function () {
|
||||
it('cannot update username', async function () {
|
||||
const [error] = await safe(users.update(admin, { username: user.username }, auditSource));
|
||||
expect(error.reason).to.be(BoxError.ALREADY_EXISTS);
|
||||
expect(error.message).to.equal('username already exists');
|
||||
expect(error.reason).to.be(BoxError.CONFLICT);
|
||||
expect(error.message).to.equal('Username cannot be changed');
|
||||
});
|
||||
|
||||
it('can update the user', async function () {
|
||||
|
||||
Reference in New Issue
Block a user