packages/core: add observable consumer to ErrorApi

This commit is contained in:
Patrik Oldsberg
2020-05-25 22:01:20 +02:00
parent 9be7870a34
commit 4e7e0833cc
4 changed files with 20 additions and 19 deletions
@@ -53,7 +53,7 @@ describe('CreateAudit', () => {
let errorApi: ErrorApi;
beforeEach(() => {
errorApi = { post: jest.fn() };
errorApi = { post: jest.fn(), error$: jest.fn() };
apis = ApiRegistry.from([
[lighthouseApiRef, new LighthouseRestApi('http://lighthouse')],
[errorApiRef, errorApi],