Skip to content

Commit

Permalink
DSEGOG-341 Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
joelvdavies committed Aug 15, 2024
1 parent ed8ea6b commit bcd7452
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions e2e/mocked/plotting.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -554,8 +554,8 @@ test('user can change the line width of plotted channels', async ({ page }) => {
test('user can plot channels on the right y axis', async ({ page }) => {
await page.goto('/');

// MSW wont load immediately here, so wait for it to start
await page.waitForFunction(() => window.msw);
// MSW wont start immediately here, so wait for page to load first
await expect(page.locator('text=Plots')).toBeVisible();

await page.evaluate(async () => {
const { msw } = window;
Expand Down
3 changes: 1 addition & 2 deletions src/mocks/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,7 @@ export const handlers = [
}
),
http.post('/users/preferences', async ({ request }) => {
// Ignoring here as don't have types defined for these endpoints
// @ts-ignore
// @ts-expect-error Ignoring here as don't have types defined for these endpoints
preferredColourMap = (await request.json()).value;
return HttpResponse.json(preferredColourMap, { status: 200 });
}),
Expand Down

0 comments on commit bcd7452

Please sign in to comment.