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 #35

Closed
wants to merge 2 commits into from

Conversation

johanneswuerbach
Copy link
Contributor

be.ok; and others can now be written as be.ok();

Fixes #6
More details chaijs/chai#297

@slindberg
Copy link
Contributor

Note: this behavior has been reverted in Chai master, and is slated to go out in the next release. Additionally, using this lint-friendly syntax is incompatible with chai-as-promised.

@johanneswuerbach
Copy link
Contributor Author

o.O I was definitely not aware that this was rolled back thanks. It is still advertised on their homepage (for 2 months now) and I guess we were not the only ones who converted their projects ...

@johanneswuerbach
Copy link
Contributor Author

Same as emberjs/ember-mocha#13 (comment)

@ef4
Copy link
Contributor

ef4 commented Apr 20, 2015

I'm using https://github.com/prodatakey/dirty-chai to deal with this.

I think the chai project is nuts for pushing a single style that forces people to disable a whole class of safety checks in their test code.

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.

Consider setting expr:true in tests/.jshintrc to avoid chai warnings
3 participants