cli: split and bump eslint dependencies + fix issues

This commit is contained in:
Patrik Oldsberg
2020-10-17 14:44:02 +02:00
parent bb243dca25
commit 9f3ddfacde
15 changed files with 157 additions and 121 deletions
@@ -163,7 +163,7 @@ describe('AuditView', () => {
});
describe('when the request for the website by id is pending', () => {
it('it shows the loading', async () => {
it('shows the loading', async () => {
mockFetch.mockImplementationOnce(() => new Promise(() => {}));
const rendered = render(
wrapInTestApp(
@@ -177,7 +177,7 @@ describe('AuditView', () => {
});
describe('when the request for the website by id fails', () => {
it('it shows an error', async () => {
it('shows an error', async () => {
mockFetch.mockRejectOnce(new Error('failed to fetch'));
const rendered = render(
wrapInTestApp(
@@ -75,7 +75,7 @@ describe('useWebsiteForEntity', () => {
(mockLighthouseApi.getWebsiteByUrl as jest.Mock).mockResolvedValue(website);
});
it('returns the lighthouse information for the website url in annotations ', async () => {
it('returns the lighthouse information for the website url in annotations', async () => {
const { result, waitForNextUpdate } = subject();
await waitForNextUpdate();
expect(result.current?.value).toBe(website);