diff options
Diffstat (limited to 'packages/browser/src/setupTests.ts')
-rw-r--r-- | packages/browser/src/setupTests.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/browser/src/setupTests.ts b/packages/browser/src/setupTests.ts index 09ae162..2ac528a 100644 --- a/packages/browser/src/setupTests.ts +++ b/packages/browser/src/setupTests.ts @@ -7,7 +7,7 @@ * JSDom doesn't seem to support `credentials`, so let's define them here so we can mock their * implementations in specific tests. */ -Object.defineProperty(globalThis.window.navigator, "credentials", { +Object.defineProperty(globalThis.window.navigator, 'credentials', { writable: true, value: { create: jest.fn(), @@ -18,9 +18,9 @@ Object.defineProperty(globalThis.window.navigator, "credentials", { /** * Allow for setting values to `window.location.hostname` */ -Object.defineProperty(window, "location", { +Object.defineProperty(window, 'location', { writable: true, value: { - hostname: "", + hostname: '', }, }); |