Last active
February 22, 2019 19:45
-
-
Save alirezamirian/043f737c5559e4a01e1b1714fe369904 to your computer and use it in GitHub Desktop.
For a Medium post
This file contains hidden or 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
function mountUsage(usage = <Zippy header='header'/>) { | |
const wrapper = mount(usage); | |
return { | |
wrapper, | |
isOpen: () => wrapper.find('.zippy-content').length > 0, | |
clickHeader: () => wrapper.find('.zippy-header').simulate('click'), | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment