Commits

Alexandre Vryghem authored 2dbf69e46b8 Merge
Merge branch 'advanced-search_contribute-7.6' into advanced-search_contribute-main

# Conflicts: # src/app/core/shared/search/search-filter.service.ts # src/app/core/shared/search/search.service.ts # src/app/shared/search/search-filters/search-filter/search-facet-filter/search-facet-filter.component.spec.ts # src/app/shared/search/search-filters/search-filter/search-facet-filter/search-facet-filter.component.ts # src/app/shared/search/search-filters/search-filter/search-filter.component.spec.ts # src/app/shared/search/search-filters/search-filter/search-filter.component.ts # src/app/shared/search/search-filters/search-filter/search-hierarchy-filter/search-hierarchy-filter.component.spec.ts # src/app/shared/search/search-filters/search-filter/search-range-filter/search-range-filter.component.ts # src/app/shared/testing/search-service.stub.ts
No tags
gidlmaster

src/app/core/shared/search/search-filter.service.spec.ts

Modified
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 });

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut