more profileConfig rename

This commit is contained in:
Girish Ramakrishnan
2022-01-13 15:20:16 -08:00
parent e9945d8010
commit 97e439f8a3
5 changed files with 49 additions and 36 deletions
+3 -3
View File
@@ -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 () {