Skip to content

Commit e180e13

Browse files
committed
test(dashboard): type the closest mock (TM-935)
1 parent 830b3f6 commit e180e13

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/utils/__tests__/dashboardHelpers.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ describe('dashboardHelpers', () => {
2020
});
2121

2222
it('detects typing targets', () => {
23-
const inField = { closest: jest.fn(() => ({})) };
24-
const elsewhere = { closest: jest.fn(() => null) };
23+
const inField = { closest: jest.fn((_selector: string) => ({})) };
24+
const elsewhere = { closest: jest.fn((_selector: string) => null) };
2525
expect(isTypingTarget(inField as unknown as EventTarget)).toBe(true);
2626
expect(inField.closest.mock.calls[0][0]).toContain('textarea');
2727
expect(inField.closest.mock.calls[0][0]).toContain('contenteditable');

0 commit comments

Comments
 (0)