Skip to content

Commit

Permalink
Version 2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zihejia committed Dec 2, 2023
1 parent 5a8e5dc commit 6a4a91a
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.3.1", "mp_lib": "react-native"}, "https://api.mixpanel.com");
expect(NativeModules.MixpanelReactNative.initialize).toBeCalledWith("token", true, false, {"$lib_version": "2.4.0", "mp_lib": "react-native"}, "https://api.mixpanel.com");
});

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.3.1", "mp_lib": "react-native", "super": "property"}, "https://api.mixpanel.com");
expect(NativeModules.MixpanelReactNative.initialize).toBeCalledWith("token", true, true, {"$lib_version": "2.4.0", "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.3.1",
"version": "2.4.0",
"description": "Official React Native Tracking Library for Mixpanel Analytics",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 6a4a91a

Please sign in to comment.