diff --git a/src/app/core/data/comcol-data.service.spec.ts b/src/app/core/data/comcol-data.service.spec.ts index 80e70bed51..f734d15c86 100644 --- a/src/app/core/data/comcol-data.service.spec.ts +++ b/src/app/core/data/comcol-data.service.spec.ts @@ -162,11 +162,12 @@ describe('ComColDataService', () => { }); describe('if the scope Community can\'t be found', () => { - it('should throw an error', () => { + it('should throw an error', (done) => { const result = service.getBrowseEndpoint(options); const expected = cold('--#-', undefined, new Error(`The Community with scope ${scopeID} couldn't be retrieved`)); expect(result).toBeObservable(expected); + done(); }); });