Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: move mixpanel tests to component test suite #2668

Merged
merged 8 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4,452 changes: 0 additions & 4,452 deletions test/__tests__/data/mp_input.json

This file was deleted.

1,330 changes: 0 additions & 1,330 deletions test/__tests__/data/mp_output.json

This file was deleted.

603 changes: 0 additions & 603 deletions test/__tests__/data/mp_router_input.json

This file was deleted.

303 changes: 0 additions & 303 deletions test/__tests__/data/mp_router_output.json

This file was deleted.

62 changes: 0 additions & 62 deletions test/__tests__/mixpanel.test.js

This file was deleted.

23 changes: 23 additions & 0 deletions test/integrations/destinations/mp/common.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
const defaultMockFns = () => {
jest.spyOn(Date, 'now').mockImplementation(() => new Date(Date.UTC(2020, 0, 25)).valueOf());
};

const sampleDestination = {
Config: {
apiKey: 'dummyApiKey',
token: 'dummyApiKey',
prefixProperties: true,
useNativeSDK: false,
},
DestinationDefinition: {
DisplayName: 'Mixpanel',
ID: '1WhbSZ6uA3H5ChVifHpfL2H6sie',
Name: 'MP',
},
Enabled: true,
ID: '1WhcOCGgj9asZu850HvugU2C3Aq',
Name: 'MP',
Transformations: [],
};

export { sampleDestination, defaultMockFns };
Loading
Loading