Skip to content

Commit 1b2d982

Browse files
[DURACOM-151] unit test fix
1 parent 3611f37 commit 1b2d982

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/app/core/data/request.service.spec.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -627,11 +627,8 @@ describe('RequestService', () => {
627627

628628
it('should return an Observable that emits true as soon as the request is stale', fakeAsync(() => {
629629
dispatchSpy.and.callFake(() => { /* empty */ }); // don't actually set as stale
630-
getByUUIDSpy.and.returnValue(cold('a-b--c--d-', { // but fake the state in the cache
631-
a: { state: RequestEntryState.ResponsePending },
632-
b: { state: RequestEntryState.Success },
633-
c: { state: RequestEntryState.SuccessStale },
634-
d: { state: RequestEntryState.Error },
630+
getByUUIDSpy.and.returnValue(cold('-----(a|)', { // but fake the state in the cache
631+
a: { state: RequestEntryState.SuccessStale },
635632
}));
636633

637634
const done$ = service.setStaleByUUID('something');

0 commit comments

Comments
 (0)