Changed test description
gitea/salix/2138-zone_event_m3 This commit looks good Details

This commit is contained in:
Joan Sanchez 2020-02-26 11:43:41 +01:00
parent 54bb2c4a0a
commit e09325b3fa
1 changed files with 1 additions and 1 deletions

View File

@ -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');