configuration-search-page.component.spec.ts (dspace-angular-dspace-7.0) | : | configuration-search-page.component.spec.ts (dspace-angular-dspace-7.1) | ||
---|---|---|---|---|
skipping to change at line 58 | skipping to change at line 58 | |||
}); | }); | |||
it('should set route parameters on init', () => { | it('should set route parameters on init', () => { | |||
expect(comp.configuration).toBe(CONFIGURATION); | expect(comp.configuration).toBe(CONFIGURATION); | |||
expect(comp.fixedFilterQuery).toBe(QUERY); | expect(comp.fixedFilterQuery).toBe(QUERY); | |||
expect(routeService.setParameter).toHaveBeenCalledWith('configuration', CONF IGURATION); | expect(routeService.setParameter).toHaveBeenCalledWith('configuration', CONF IGURATION); | |||
expect(routeService.setParameter).toHaveBeenCalledWith('fixedFilterQuery', Q UERY); | expect(routeService.setParameter).toHaveBeenCalledWith('fixedFilterQuery', Q UERY); | |||
}); | }); | |||
it('should reset route parameters on destroy', () => { | ||||
fixture.destroy(); | ||||
expect(routeService.setParameter).toHaveBeenCalledWith('configuration', unde | ||||
fined); | ||||
expect(routeService.setParameter).toHaveBeenCalledWith('fixedFilterQuery', u | ||||
ndefined); | ||||
}); | ||||
}); | }); | |||
End of changes. 1 change blocks. | ||||
8 lines changed or deleted | 0 lines changed or added |