Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hiyuki committed Aug 7, 2024
1 parent d8b89e0 commit 7275324
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/api-proxy/test/touch.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// jest 没有 Touch,支持一下
class Touch {
constructor(params) {
constructor (params) {
const { identifier, target, clientX, clientY } = params
this.identifier = identifier
this.target = target
Expand All @@ -19,7 +19,7 @@ export const createTouchEvent = (type, target, params = {}) => {
bubbles: true,
touches: [touch],
targetTouches: [touch],
changedTouches: [touch],
changedTouches: [touch]
})
return event
}
Expand Down

0 comments on commit 7275324

Please sign in to comment.