Skip to content

Instantly share code, notes, and snippets.

@achhunna
Created May 12, 2019 05:22
Show Gist options
  • Save achhunna/461ad78afa0eeed00423f1260ffa8e04 to your computer and use it in GitHub Desktop.
Save achhunna/461ad78afa0eeed00423f1260ffa8e04 to your computer and use it in GitHub Desktop.
DOM action events
test('emit events when close-btn clicked', () => {
const closeBtn = wrapper.find('.close-btn');
closeBtn.trigger('click');
expect(wrapper.emitted().close.length).toBe(1);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment