Skip to content

Commit f2898f1

Browse files
[1956] fix possible unit test issue
1 parent 7d14038 commit f2898f1

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/app/shared/object-list/search-result-list-element/item-search-result/item-types/item/item-search-result-list-element.component.spec.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,10 @@ describe('ItemSearchResultListElementComponent', () => {
233233
{ provide: KlaroService, useValue: new KlaroServiceStub() },
234234
{
235235
provide: AuthorizationDataService,
236-
useValue: jasmine.createSpyObj('AuthorizationDataService', [
237-
'invalidateAuthorizationsRequestCache',
238-
]),
236+
useValue: jasmine.createSpyObj('AuthorizationDataService', {
237+
invalidateAuthorizationsRequestCache: undefined,
238+
isAuthorized: observableOf(true),
239+
}),
239240
},
240241
],
241242
schemas: [NO_ERRORS_SCHEMA],

0 commit comments

Comments
 (0)