forked from marmelab/react-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Travis CI
committed
Oct 11, 2021
1 parent
748786b
commit 7c66b81
Showing
2 changed files
with
15 additions
and
20 deletions.
There are no files selected for viewing
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,15 @@ | ||
const mock = () => { | ||
const PopperJS = jest.requireActual('@popperjs/core'); | ||
return { | ||
placements: PopperJS.placements, | ||
destroy: () => {}, | ||
scheduleUpdate: () => {}, | ||
forceUpdate: () => {}, | ||
render: function (this: any) { | ||
return this.$options._renderChildren; | ||
}, | ||
}; | ||
}; | ||
|
||
export default mock; | ||
export { mock as createPopper }; |
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