updated unit tests
This commit is contained in:
parent
8a5e0c5402
commit
cb23fd28fa
|
@ -80,13 +80,13 @@ describe('Component VnClientWebAccess', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
describe(`when password is empty`, () => {
|
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.client = {id: '1234'};
|
||||||
controller.newPassword = '';
|
controller.newPassword = '';
|
||||||
controller.canChangePassword = true;
|
controller.canChangePassword = true;
|
||||||
controller.onPassChange('ACCEPT');
|
controller.onPassChange('ACCEPT');
|
||||||
|
|
||||||
expect(vnApp.showError).toHaveBeenCalledWith(`Passwords can't be empty`);
|
expect(vnApp.showError).toHaveBeenCalledWith(`You must enter a new password`);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue