Changed test description
gitea/salix/2138-zone_event_m3 This commit looks good
Details
gitea/salix/2138-zone_event_m3 This commit looks good
Details
This commit is contained in:
parent
54bb2c4a0a
commit
e09325b3fa
|
@ -61,7 +61,7 @@ describe('Zone Component vnZoneDeliveryDays', () => {
|
||||||
expect(controller.$.zoneEvents.show).not.toHaveBeenCalled();
|
expect(controller.$.zoneEvents.show).not.toHaveBeenCalled();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should return', () => {
|
it('should call the show() method and then call the applyFilter() method with the spected ids', () => {
|
||||||
const zoneModel = controller.$.zoneIndex.$scope.model;
|
const zoneModel = controller.$.zoneIndex.$scope.model;
|
||||||
jest.spyOn(controller.$.zoneEvents, 'show');
|
jest.spyOn(controller.$.zoneEvents, 'show');
|
||||||
jest.spyOn(zoneModel, 'applyFilter');
|
jest.spyOn(zoneModel, 'applyFilter');
|
||||||
|
|
Loading…
Reference in New Issue