From 13f8d24efb89fbb3314e07d839b04c23af79b3dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sampo=20Kivist=C3=B6?= Date: Sat, 16 Mar 2024 12:01:32 +0200 Subject: [PATCH] Converted inferno-utils tests to tsx github#1632 --- .../__tests__/{utils.spec.jsx => utils.spec.tsx} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename packages/inferno-utils/__tests__/{utils.spec.jsx => utils.spec.tsx} (97%) diff --git a/packages/inferno-utils/__tests__/utils.spec.jsx b/packages/inferno-utils/__tests__/utils.spec.tsx similarity index 97% rename from packages/inferno-utils/__tests__/utils.spec.jsx rename to packages/inferno-utils/__tests__/utils.spec.tsx index 4c10d7acf..a7b8a8bab 100644 --- a/packages/inferno-utils/__tests__/utils.spec.jsx +++ b/packages/inferno-utils/__tests__/utils.spec.tsx @@ -31,7 +31,7 @@ describe('Utils', () => { describe('triggerEvent', () => { let expectedEventType = ''; const element = { - dispatchEvent(event) {}, + dispatchEvent() {}, }; let spyDispatch; let spyCreateMouseEvent; @@ -46,7 +46,7 @@ describe('Utils', () => { expect(ev).toBe(expectedEventType); spyEvent = { - initEvent: (eventType, canBubble, cancelable) => { + initEvent: (eventType, _canBubble, cancelable) => { expect(eventType).toBe(triggerName); // expect(canBubble).toBe(true); expect(cancelable).toBe(true);