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

Fix deprecated lifecycle method usage in tests #318

Merged
merged 2 commits into from
Jan 4, 2020

Conversation

felixmosh
Copy link
Contributor

Description

Fix async tests that not used done and passed without a good reason :]

I will try to remove all tests warnings as there are many of them in future PRs

Fix async tests that not used done and passed without a good reason :]

// Wait before adding the input
setTimeout(() => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

without usage of done in this test, it will always pass!

// Wait for next event loop, as that does the form
immediate(() => {
form.simulate('submit');
test.ok('test' in model);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

As prove of the comment, test.ok is not exists but it is never run so the test not explodes => pass

🙁

@rkuykendall
Copy link
Member

Thank you so much! These are fantastic updates.

@rkuykendall rkuykendall merged commit 292dbba into formsy:master Jan 4, 2020
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.

2 participants