Skip to content

Commit 9f062ca

Browse files
committed
test: updated jest test for persistence
1 parent 507b3e5 commit 9f062ca

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

test/jest/persistence.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ describe('Products Persistence', () => {
99
let mpInstance = mParticle.getInstance();
1010
beforeEach(() => {
1111
mParticle._resetForTests(MPConfig);
12+
localStorage.removeItem(mpInstance._Store?.prodStorageName as string);
1213
});
1314

1415
it('should save products to localStorage when noTargeting is false by default', () => {

0 commit comments

Comments
 (0)