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

chaijs 1.10 allows to write lint-friendly tests #13

Closed
wants to merge 2 commits into from

Conversation

johanneswuerbach
Copy link
Contributor

More details chaijs/chai#297

});
});
expect(pendingSpec).to.be.defined;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was actually never doing the intended verification of pendingSpec. defined is actually not a defined chai assertion and so this was testing for undefined. The new function syntax prevents those errors.

@rwjblue
Copy link
Member

rwjblue commented Feb 7, 2015

chaijs/chai#297 was reverted in chaijs/chai#306, so I don't think we can go with these changes....

johanneswuerbach added a commit to johanneswuerbach/ember-mocha that referenced this pull request Feb 7, 2015
@johanneswuerbach johanneswuerbach mentioned this pull request Feb 7, 2015
@johanneswuerbach
Copy link
Contributor Author

ok, I extracted the test fix #17 and will close this until chai released a new version, which might support this or not.

@dgeb
Copy link
Member

dgeb commented Feb 7, 2015

Definitely looking forward to chai being more lint-friendly.

@Turbo87
Copy link
Member

Turbo87 commented Feb 9, 2016

@dgeb apparently that's not going to happen, but it looks like expect.js is essentially a lint-friendly version of the same thing

@johanneswuerbach johanneswuerbach deleted the no-expr branch February 9, 2016 16:06
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.

4 participants