Skip to content

Commit

Permalink
fix: proper types for navigator.vibrate tests stub
Browse files Browse the repository at this point in the history
  • Loading branch information
xobotyi committed Nov 21, 2022
1 parent 347ec62 commit 250a684
Show file tree
Hide file tree
Showing 3 changed files with 1,078 additions and 1,102 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@
"@testing-library/react-hooks": "^8.0.1",
"@types/jest": "^29.2.3",
"@types/js-cookie": "^3.0.2",
"@types/node": "^18.11.9",
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.6",
"babel-loader": "^9.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/navigator.vibrate.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const NavigatorVibrateSetup = () => {
navigator.vibrate = (_: VibratePattern): boolean => true;
navigator.vibrate = (() => true) as typeof navigator.vibrate;
};
Loading

0 comments on commit 250a684

Please sign in to comment.