message: Should be able to update the registered user
diff: @@ -69,6 +69,7 @@ describe('Authentication Service (tenant utall)', function() {
  // Check
  expect(response.status).to.be.eql(200);
  expect(response.data).to.have.property('status', 'Success');
  + testData.createdUsersAdminTenant.push(newUser);
  response = await CentralServerService.defaultInstance.userApi.getByEmail(newUser.email);
  expect(response.status).to.be.eql(200);
  @@ -109,6 +110,21 @@ describe('Authentication Service (tenant utall)', function() {
  expect(user.notifications.sendUserAccountStatusChanged).to.eql(true);
  });
  +
  + it('Should be able to update the registered user', async () => {
  + let response = await CentralServerService.defaultInstance.userApi.getByEmail(testData.createdUsersAdminTenant[0].email);
  + expect(response.status).to.be.eql(200);
  + expect(response.data).to.have.property('count', 1);
  + const user: User = response.data.result[0];
  + // Change entity
  + user.name = 'NEW NAME';
  + // Update
  + response = await CentralServerService.defaultInstance.userApi.update(user);
  + // Check
  + expect(response.status).to.equal(200);
  + expect(response.data.status).to.eql('Success');
  + });
  +
  it('Should be possible to register a new user on the default tenant', async () => {
  const newUser = UserFactory.buildRegisterUser();
  let response = await CentralServerService.defaultInstance.authenticationApi.registerUser(newUser, null);
  