Skip to content

Commit

Permalink
Version 2.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredmixpanel committed Apr 25, 2023
1 parent 9325dbb commit 1b391eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions __tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import { NativeModules } from 'react-native';

test(`it calls MixpanelReactNative initialize`, async () => {
const mixpanel = await Mixpanel.init("token", true);
expect(NativeModules.MixpanelReactNative.initialize).toBeCalledWith("token", true, false, {"$lib_version": "2.2.3", "mp_lib": "react-native"});
expect(NativeModules.MixpanelReactNative.initialize).toBeCalledWith("token", true, false, {"$lib_version": "2.2.4", "mp_lib": "react-native"});
});

test(`it calls MixpanelReactNative initialize with optOut and superProperties`, async () => {
const mixpanel = new Mixpanel("token", true);
mixpanel.init(true, {"super": "property"})
expect(NativeModules.MixpanelReactNative.initialize).toBeCalledWith("token", true, true, {"$lib_version": "2.2.3", "mp_lib": "react-native", "super": "property"}, "https://api.mixpanel.com");
expect(NativeModules.MixpanelReactNative.initialize).toBeCalledWith("token", true, true, {"$lib_version": "2.2.4", "mp_lib": "react-native", "super": "property"}, "https://api.mixpanel.com");
});

test(`it calls MixpanelReactNative setServerURL`, async () => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mixpanel-react-native",
"version": "2.2.3",
"version": "2.2.4",
"description": "Official React Native Tracking Library for Mixpanel Analytics",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 1b391eb

Please sign in to comment.