Created
February 25, 2019 14:57
-
-
Save niinpatel/7dcb98ae6122f3253af935e9d8b074dc to your computer and use it in GitHub Desktop.
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
import React from 'react'; | |
import { mount } from 'enzyme'; | |
const TestHook = ({ callback }) => { | |
callback(); | |
return null; | |
}; | |
export const testHook = (callback) => { | |
mount(<TestHook callback={callback} />); | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment