Commits
Alexandre Vryghem authored a340eb2a072
89 89 | let result; |
90 90 | beforeEach(() => { |
91 91 | spyOn(service, 'hasCachedErrorResponse').and.returnValue(observableOf(true)); |
92 92 | result = service.getExternalSourceEntries('test'); |
93 93 | }); |
94 94 | |
95 95 | it('should send a GetRequest', () => { |
96 96 | result.pipe(take(1)).subscribe(); |
97 97 | expect(requestService.send).toHaveBeenCalledWith(jasmine.any(GetRequest), false); |
98 98 | }); |
99 - | |
100 - | it('should return the entries', () => { |
101 - | result.subscribe((resultRD) => { |
102 - | expect(resultRD.payload.page).toBe(entries); |
103 - | }); |
104 - | }); |
105 99 | }); |
106 100 | }); |
107 101 | }); |