Last active
February 22, 2019 19:45
-
-
Save alirezamirian/9286f860c676fcbf671ebef99c105164 to your computer and use it in GitHub Desktop.
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
it('should work when neither open state is controlled nor toggle handler is passed', () => { | |
const { clickHeader, isOpen } = mountUsage(); | |
expect(isOpen()).toBe(false); | |
clickHeader(); | |
expect(isOpen()).toBe(true); | |
clickHeader(); | |
expect(isOpen()).toBe(false); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment