Updated unit test
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
197ed2009f
commit
458d2670b3
|
@ -33,7 +33,7 @@ describe('Component VnClientWebAccess', () => {
|
|||
it('should return true if the password can be modified', () => {
|
||||
controller.client = {id: '1234'};
|
||||
|
||||
$httpBackend.expectGET(`Clients/${controller.client.id}/hasCustomerRole`).respond({isCustomer: true});
|
||||
$httpBackend.expectGET(`Clients/${controller.client.id}/hasCustomerRole`).respond(true);
|
||||
controller.isCustomer();
|
||||
$httpBackend.flush();
|
||||
|
||||
|
@ -43,7 +43,7 @@ describe('Component VnClientWebAccess', () => {
|
|||
it(`should return a false if the password can't be modified`, () => {
|
||||
controller.client = {id: '1234'};
|
||||
|
||||
$httpBackend.expectGET(`Clients/${controller.client.id}/hasCustomerRole`).respond({isCustomer: false});
|
||||
$httpBackend.expectGET(`Clients/${controller.client.id}/hasCustomerRole`).respond(false);
|
||||
controller.isCustomer();
|
||||
$httpBackend.flush();
|
||||
|
||||
|
|
Loading…
Reference in New Issue