Skip to content

Commit bb95e93

Browse files
committed
Lint
1 parent ef9da08 commit bb95e93

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

integration-tests/DashboardPage.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { Nav } from './Nav';
55
import { testDataStates } from '../shared/js/ui/views/tests/states-with-fixtures';
66
import { mockBrowserApis } from '../shared/js/browser/utils/communication-mocks.mjs';
77
import { Extension } from './Extension';
8+
import toggleReportScreen from '../schema/__fixtures__/toggle-report-screen.json';
89

910
export class DashboardPage {
1011
connectInfoLink = () => this.page.locator('[aria-label="View Connection Information"]');
@@ -313,9 +314,9 @@ export class DashboardPage {
313314
const messages = {};
314315
messages.getBurnOptions = initial.toBurnOptions();
315316
messages.getPrivacyDashboardData = initial.toExtensionDashboardData();
316-
// eslint-disable-next-line @typescript-eslint/no-require-imports
317-
messages.getToggleReportOptions = require('../schema/__fixtures__/toggle-report-screen.json');
318-
messages.getBreakageFormOptions = require('../schema/__fixtures__/toggle-report-screen.json');
317+
318+
messages.getToggleReportOptions = toggleReportScreen;
319+
messages.getBreakageFormOptions = toggleReportScreen;
319320

320321
await page.addInitScript(mockBrowserApis, { messages });
321322

shared/js/browser/browser-communication.js

-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,6 @@ export function getToggleReportOptions() {
352352
return request('getToggleReportOptions');
353353
}
354354

355-
356355
/**
357356
* @category Dashboard -> Extension Messages
358357
* @return {Promise<import('../../../schema/__generated__/schema.types').ToggleReportScreen>}

shared/js/browser/utils/communication-mocks.mjs

-1
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,6 @@ export async function installDebuggerMocks(platform) {
435435
messages.getPrivacyDashboardData = mock.toExtensionDashboardData();
436436
messages.getToggleReportOptions = toggleReportScreen;
437437
messages.getBreakageFormOptions = toggleReportScreen;
438-
439438
}
440439
if (platform.name === 'windows') {
441440
messages.windowsViewModel = mock.toWindowsViewModel();

0 commit comments

Comments
 (0)