4860-route.index_downloadZip #1259

Merged
vicent merged 9 commits from 4860-route.index_downloadZip into dev 2023-01-27 08:12:06 +00:00
1 changed files with 2 additions and 4 deletions
Showing only changes of commit 849f4e1a6d - Show all commits

View File

@ -44,17 +44,15 @@ describe('Component vnRouteIndex', () => {
describe('showRouteReport()', () => {
it('should call to the vnReport show method', () => {
controller.vnReport.show = jest.fn();
jest.spyOn(window, 'open').mockReturnThis();
const data = controller.$.model.data;
data[0].checked = true;
data[2].checked = true;
const routeIds = '1,3';
controller.showRouteReport();
expect(controller.vnReport.show).toHaveBeenCalledWith(`Routes/${routeIds}/driver-route-pdf`);
expect(window.open).toHaveBeenCalled();
});
});