Skip to content

Conversation

@asselin
Copy link
Collaborator

@asselin asselin commented Mar 2, 2017

Before merging, we should probably have a discussion on whether adding another parameter to mount is a good idea...

@callumacrae
Copy link
Owner

callumacrae commented Mar 3, 2017

An alternative could be to turn the returned object into an event emitter instead of adding another argument:

const mounted = mount(Events);
mounted.on('anEvent', spy);
mounted.find('a:first-child').trigger('click');

Wonder if that would be a better idea anyway.

Also, could you test that the event is being passed in as an argument?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants