get-location-with-timeout
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "get-location-with-timeout", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"types": "build", | ||
@@ -5,0 +5,0 @@ "deploy": "build", |
@@ -11,8 +11,7 @@ import getCurrentLocationWithTimeout from "index" | ||
} | ||
const MOCK_REJECT_RESPONSE = new Error('reject') | ||
const mockGetCurrentPosition = jest.fn() | ||
const mockGetCurrentPosition = jest.fn() | ||
beforeAll(() => { | ||
jest.useFakeTimers() | ||
Object.defineProperty(window, 'navigator', { | ||
@@ -29,2 +28,3 @@ value: { | ||
mockGetCurrentPosition.mockClear() | ||
jest.clearAllTimers() | ||
}) | ||
@@ -38,2 +38,3 @@ | ||
}, 50000) | ||
jest.runAllTimers() | ||
}) | ||
@@ -57,2 +58,3 @@ }) | ||
}, 50000) | ||
jest.runAllTimers() | ||
}) | ||
@@ -76,2 +78,3 @@ }) | ||
}, 500) | ||
jest.runAllTimers() | ||
}) | ||
@@ -95,2 +98,3 @@ }) | ||
}, 500) | ||
jest.runAllTimers() | ||
}) | ||
@@ -97,0 +101,0 @@ }) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
130705
229