Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic tests #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Basic tests #9

wants to merge 1 commit into from

Conversation

Andarist
Copy link
Collaborator

@Andarist Andarist commented Feb 2, 2018

Need go back to work, I'll add more tests later.

const incButton = wrapper.find('button').last();
incButton.simulate('click');
incButton.simulate('click');
expect(wrapper).toMatchSnapshot();
Copy link
Contributor

@ryami333 ryami333 Mar 5, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason why you're using snapshots here instead of actually just making an explicit assertion? In my opinion, this is a common misuse of snapshots and I think it just makes it harder for developers to actually read what this test is actually trying to assert, and subsequently what is an acceptable snapshot diff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants