Skip to content

Commit

Permalink
Bump jest-webextension-mock from 3.8.9 to 3.8.16 (#8357)
Browse files Browse the repository at this point in the history
* Bump jest-webextension-mock from 3.8.9 to 3.8.16

Bumps [jest-webextension-mock](https://github.com/RickyMarou/jest-webextension-mock) from 3.8.9 to 3.8.16.
- [Changelog](https://github.com/RickyMarou/jest-webextension-mock/blob/main/CHANGELOG.md)
- [Commits](RickyMarou/jest-webextension-mock@v3.8.9...3.8.16)

---
updated-dependencies:
- dependency-name: jest-webextension-mock
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix assertions

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Graham Langford <grahamlangford87@gmail.com>
  • Loading branch information
dependabot[bot] and grahamlangford committed Apr 30, 2024
1 parent 4d85432 commit 6764aaf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 15 deletions.
7 changes: 4 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -267,7 +267,7 @@
"jest-environment-jsdom": "^29.7.0",
"jest-extended": "^4.0.2",
"jest-location-mock": "^2.0.0",
"jest-webextension-mock": "^3.8.9",
"jest-webextension-mock": "^3.8.16",
"jsdom": "^24.0.0",
"jsdom-testing-mocks": "^1.13.0",
"knip": "^5.11.0",
Expand Down
9 changes: 1 addition & 8 deletions src/store/enterprise/managedStorage.test.ts
Expand Up @@ -32,11 +32,7 @@ beforeEach(async () => {
describe("readManagedStorage", () => {
it("reads immediately if managed storage is already initialized", async () => {
await initializationTimestamp.set(new Date().toISOString() as Timestamp);
await expect(readManagedStorage()).resolves.toStrictEqual({
// `jest-webextension-mock`'s storage is shared across sources, the call ends up with the managed storage
// and the local storage mixed together. See https://github.com/clarkbw/jest-webextension-mock/issues/183
managedStorageInitTimestamp: expect.any(String),
});
await expect(readManagedStorage()).resolves.toStrictEqual({});

// Should only be called once vs. polling
expect(browser.storage.managed.get).toHaveBeenCalledOnce();
Expand All @@ -49,9 +45,6 @@ describe("readManagedStorage", () => {
it("reads managed storage", async () => {
await browser.storage.managed.set({ partnerId: "taco-bell" });
await expect(readManagedStorage()).resolves.toStrictEqual({
// `jest-webextension-mock`'s storage is shared across sources, the call ends up with the managed storage
// and the local storage mixed together. See https://github.com/clarkbw/jest-webextension-mock/issues/183
managedStorageInitTimestamp: expect.any(String),
partnerId: "taco-bell",
});
});
Expand Down
3 changes: 0 additions & 3 deletions src/store/enterprise/useManagedStorageState.test.ts
Expand Up @@ -66,9 +66,6 @@ describe("useManagedStorageState", () => {

expect(result.current).toStrictEqual({
data: {
// `jest-webextension-mock`'s storage is shared across sources, the call ends up with the managed storage
// and the local storage mixed together. See https://github.com/clarkbw/jest-webextension-mock/issues/183
managedStorageInitTimestamp: expect.any(String),
partnerId: "taco-bell",
},
isLoading: false,
Expand Down

0 comments on commit 6764aaf

Please sign in to comment.