Skip to content

Commit

Permalink
Merge pull request #244 from makarkotlov/bugfix/fix-jest-setup
Browse files Browse the repository at this point in the history
fix: fix adapter storage jest setup
  • Loading branch information
zihejia authored May 10, 2024
2 parents 724797a + af319ac commit e852dd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions __tests__/jest_setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import * as ReactNative from "react-native";
jest.mock("mixpanel-react-native/javascript/mixpanel-storage", () => {
return {
AsyncStorageAdapter: jest.fn().mockImplementation(() => ({
getItem: jest.fn(),
setItem: jest.fn(),
removeItem: jest.fn(),
getItem: jest.fn().mockResolvedValue(null),
setItem: jest.fn().mockResolvedValue(undefined),
removeItem: jest.fn().mockResolvedValue(undefined),
})),
};
});
Expand Down

0 comments on commit e852dd2

Please sign in to comment.