Skip to content

Commit

Permalink
fix: silence lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaoste committed Jun 24, 2024
1 parent 2fee063 commit 378a50a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/visual-editor/src/hooks/useEditorSubscriber.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
import { beforeEach, describe, it, vi } from 'vitest';
import { renderHook } from '@testing-library/react';
import { useEditorSubscriber } from './useEditorSubscriber';
import { IncomingEvent } from '@contentful/experiences-core/types';
Expand Down Expand Up @@ -34,8 +34,10 @@ const data = {
newAttribute: m.string(),
};

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const createPostMessageReceiver = (_event: IncomingEvent, payload) =>
synchronousBodyHandler(() => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
let listener: EventListener | undefined;
vi.spyOn(window, 'addEventListener').mockImplementationOnce((_event, _listener) => {
// _listener will be src/javascripts/features/content-preview-frame/useMessaging.ts:L172
Expand Down

0 comments on commit 378a50a

Please sign in to comment.