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 5386deb commit 4dcae8a
Show file tree
Hide file tree
Showing 3 changed files with 1,034 additions and 1,065 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 4dcae8a

Please sign in to comment.