We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49c55d9 commit 2b1a021Copy full SHA for 2b1a021
1 file changed
packages/designer/src/__tests__/touchDragPolyfill.test.ts
@@ -9,8 +9,8 @@ describe('touchDragPolyfill', () => {
9
});
10
11
it('should return true if ontouchstart exists', () => {
12
- // @ts-ignore - Testing browser API
13
- global.window = { ontouchstart: {} } as any;
+ // Testing browser API
+ (global as any).window = { ontouchstart: {} };
14
expect(isTouchDevice()).toBe(true);
15
16
0 commit comments