Commits
Alexandre Vryghem authored 2dbf69e46b8 Merge
153 153 | beforeEach(() => { |
154 154 | spyOn(routeServiceStub, 'hasQueryParam'); |
155 155 | service.isFilterActive(mockFilterConfig.paramName); |
156 156 | }); |
157 157 | |
158 158 | it('should call hasQueryParam on the route service with the same parameters', () => { |
159 159 | expect(routeServiceStub.hasQueryParam).toHaveBeenCalledWith(mockFilterConfig.paramName); |
160 160 | }); |
161 161 | }); |
162 162 | |
163 - | describe('when the getSelectedValuesForFilter method is called', () => { |
164 - | beforeEach(() => { |
165 - | spyOn(routeServiceStub, 'getQueryParameterValues'); |
166 - | service.getSelectedValuesForFilter(mockFilterConfig); |
167 - | }); |
168 - | |
169 - | it('should call getQueryParameterValues on the route service with the same parameters', () => { |
170 - | expect(routeServiceStub.getQueryParameterValues).toHaveBeenCalledWith(mockFilterConfig.paramName); |
171 - | }); |
172 - | }); |
173 - | |
174 163 | describe('when the getCurrentScope method is called', () => { |
175 164 | beforeEach(() => { |
176 165 | spyOn(routeServiceStub, 'getQueryParameterValue'); |
177 166 | service.getCurrentScope(); |
178 167 | }); |
179 168 | |
180 169 | it('should call getQueryParameterValue on the route service with scope', () => { |
181 170 | expect(routeServiceStub.getQueryParameterValue).toHaveBeenCalledWith('scope'); |
182 171 | }); |
183 172 | }); |