Skip to content

Instantly share code, notes, and snippets.

@alirezamirian
Last active February 22, 2019 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alirezamirian/9286f860c676fcbf671ebef99c105164 to your computer and use it in GitHub Desktop.
Save alirezamirian/9286f860c676fcbf671ebef99c105164 to your computer and use it in GitHub Desktop.
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