Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

Commit 2b1a021

Browse files
author
Jack Zhuang
committed
移除对 TypeScript 的忽略注释,以提高测试代码的可读性
1 parent 49c55d9 commit 2b1a021

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/designer/src/__tests__/touchDragPolyfill.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ describe('touchDragPolyfill', () => {
99
});
1010

1111
it('should return true if ontouchstart exists', () => {
12-
// @ts-ignore - Testing browser API
13-
global.window = { ontouchstart: {} } as any;
12+
// Testing browser API
13+
(global as any).window = { ontouchstart: {} };
1414
expect(isTouchDevice()).toBe(true);
1515
});
1616
});

0 commit comments

Comments
 (0)