updated unit tests

This commit is contained in:
Joan Sanchez 2019-07-11 07:18:07 +02:00
parent 8a5e0c5402
commit cb23fd28fa
1 changed files with 2 additions and 2 deletions

View File

@ -80,13 +80,13 @@ describe('Component VnClientWebAccess', () => {
});
describe(`when password is empty`, () => {
it(`should throw Passwords can't be empty error`, () => {
it(`should throw 'You must enter a new password' error`, () => {
controller.client = {id: '1234'};
controller.newPassword = '';
controller.canChangePassword = true;
controller.onPassChange('ACCEPT');
expect(vnApp.showError).toHaveBeenCalledWith(`Passwords can't be empty`);
expect(vnApp.showError).toHaveBeenCalledWith(`You must enter a new password`);
});
});