finished up response cache refactoring

This commit is contained in:
lotte
2018-10-18 15:59:41 +02:00
parent 2330e96158
commit ec5f977dd2
17 changed files with 174 additions and 150 deletions

View File

@@ -25,6 +25,14 @@ describe('Core Module - RxJS Operators', () => {
e: { response: { isSuccessful: 1, resourceSelfLinks: [] } }
};
const testResponses = {
a: testRCEs.a.response,
b: testRCEs.b.response,
c: testRCEs.c.response,
d: testRCEs.d.response,
e: testRCEs.e.response
};
beforeEach(() => {
scheduler = getTestScheduler();
});
@@ -66,7 +74,7 @@ describe('Core Module - RxJS Operators', () => {
it('should only return responses for which isSuccessful === true', () => {
const source = hot('abcde', testRCEs);
const result = source.pipe(filterSuccessfulResponses());
const expected = cold('a--d-', testRCEs);
const expected = cold('a--d-', testResponses);
expect(result).toBeObservable(expected)
});