Skip to content

Commit

Permalink
fix: fix adapter storage jest setup
Browse files Browse the repository at this point in the history
  • Loading branch information
makarkotlov committed Apr 30, 2024
1 parent 3d0c79b commit af319ac
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 af319ac

Please sign in to comment.