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/e452eb0c1706f8399b6cc78527b1586e to your computer and use it in GitHub Desktop.
Save alirezamirian/e452eb0c1706f8399b6cc78527b1586e to your computer and use it in GitHub Desktop.
it('should work when value is controlled but changes are ignored (readonly mode)', () => {
const { clickHeader, isOpen } = mountUsage(<Zippy header={'header'} open={true}/>);
expect(isOpen()).toEqual(true);
clickHeader();
expect(isOpen()).toEqual(true);
clickHeader();
expect(isOpen()).toEqual(true);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment