Skip to content

Commit 8eaff6c

Browse files
committed
fix(tests): add missing RouteService session mocks in DatasetComponent spec
1 parent 7d9e099 commit 8eaff6c

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/app/item-page/simple/item-types/dataset/dataset.component.spec.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,12 @@ describe('DatasetComponent', () => {
213213
getPreviousUrl(): Observable<string> {
214214
return of('/search?query=test%20query&fakeParam=true');
215215
},
216+
storeUrlInSession(_key: string, _url: string): void {
217+
// no-op
218+
},
219+
getUrlFromSession(_key: string): string | null {
220+
return null;
221+
},
216222
};
217223
beforeEach(waitForAsync(() => {
218224
const iiifEnabledMap: MetadataMap = {
@@ -243,6 +249,12 @@ describe('DatasetComponent', () => {
243249
getPreviousUrl(): Observable<string> {
244250
return of('/item');
245251
},
252+
storeUrlInSession(_key: string, _url: string): void {
253+
// no-op
254+
},
255+
getUrlFromSession(_key: string): string | null {
256+
return null;
257+
},
246258
};
247259
beforeEach(waitForAsync(() => {
248260
const iiifEnabledMap: MetadataMap = {

0 commit comments

Comments
 (0)