Fix issue with comcol-data.service.spec.ts

This commit is contained in:
Giuseppe Digilio
2021-01-26 10:29:23 +01:00
parent 653776f119
commit 743bd0bba2

View File

@@ -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();
});
});