Skip to content

Commit aeed634

Browse files
Andrea BarbassoMattia Vianelli
authored andcommitted
[DSC-2194] fix tests failing because of multiple spy registrations
(cherry picked from commit 9ba9b94120e09a52d34644c204e86c5c5ec36e3f) (cherry picked from commit 440820d)
1 parent f1020d5 commit aeed634

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/lucky-search/search/lucky-search.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ describe('LuckySearchComponent', () => {
203203
spyOn((component as any), 'loadBitstreamsAndRedirectIfNeeded').and.returnValue(observableOf([bitstream]));
204204
spyOn((component as any), 'hasBitstreamFilters').and.returnValue(true);
205205
spyOn(component, 'redirect');
206-
routerStub.parseUrl.and.returnValue(bitstreamSearchTree);
206+
routerStub.parseUrl.and.returnValue(bitstreamSearchTree).and.callThrough();
207207

208208
component.resultsRD$.next(data);
209209

0 commit comments

Comments
 (0)