-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move mixpanel tests to component test suite (#2668)
* chore: move mipanel tests to compoennt test suite * remove old test suite * chore: add global destination for reuse in test cases * chore: refactor mp tests to resue destination * chore: make a common file for common modules * refactor: mp component tests --------- Co-authored-by: Dilip Kola <kdilipkola@gmail.com>
- Loading branch information
Showing
9 changed files
with
6,746 additions
and
6,750 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }; |
Oops, something went wrong.