diff --git a/src/store/enterprise/managedStorage.test.ts b/src/store/enterprise/managedStorage.test.ts index 5de2be25e3..a50649756e 100644 --- a/src/store/enterprise/managedStorage.test.ts +++ b/src/store/enterprise/managedStorage.test.ts @@ -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(); @@ -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", }); }); diff --git a/src/store/enterprise/useManagedStorageState.test.ts b/src/store/enterprise/useManagedStorageState.test.ts index aafa345a52..973e208944 100644 --- a/src/store/enterprise/useManagedStorageState.test.ts +++ b/src/store/enterprise/useManagedStorageState.test.ts @@ -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,