Commits
Alexandre Vryghem authored d3e057e0c20 Merge
65 65 | it('should call setStaleByHrefSubstring method', () => { |
66 66 | service.invalidateAuthorizationsRequestCache(); |
67 67 | expect((service as any).requestService.setStaleByHrefSubstring).toHaveBeenCalledWith((service as any).linkPath); |
68 68 | }); |
69 69 | |
70 70 | describe('searchByObject', () => { |
71 71 | const objectUrl = 'fake-object-url'; |
72 72 | const ePersonUuid = 'fake-eperson-uuid'; |
73 73 | |
74 74 | function createExpected(providedObjectUrl: string, providedEPersonUuid?: string, providedFeatureId?: FeatureID): FindListOptions { |
75 - | const searchParams = [new RequestParam('uri', providedObjectUrl)]; |
75 + | const searchParams = [new RequestParam('uri', providedObjectUrl, false)]; |
76 76 | if (hasValue(providedFeatureId)) { |
77 77 | searchParams.push(new RequestParam('feature', providedFeatureId)); |
78 78 | } |
79 79 | if (hasValue(providedEPersonUuid)) { |
80 80 | searchParams.push(new RequestParam('eperson', providedEPersonUuid)); |
81 81 | } |
82 82 | return Object.assign(new FindListOptions(), { searchParams }); |
83 83 | } |
84 84 | |
85 85 | describe('when no arguments are provided', () => { |