Merge pull request #1003 from spotify/rugvip/apimove

core: refactor ErrorApi and AlertApi
This commit is contained in:
Patrik Oldsberg
2020-05-26 16:27:25 +02:00
committed by GitHub
19 changed files with 105 additions and 73 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],