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

Legit assertions fail with eslint #5

Closed
jean-moldovan opened this issue Aug 27, 2018 · 2 comments
Closed

Legit assertions fail with eslint #5

jean-moldovan opened this issue Aug 27, 2018 · 2 comments

Comments

@jean-moldovan
Copy link

Hello!

I'm using eslint-plugin-cypress 2.0.1 and babel-eslint 8.2.6

expect(null).to.be.null fails with Expected an assignment or function call and instead saw an expression

If I change it to:
expect(null).to.eq(null) <- works ok

Thanks!

@chrisbreiding
Copy link
Contributor

Are you using the no-unused-expressions eslint rule? If so, it might be the same as #3 and you can follow these instructions to work around it.

@jean-moldovan
Copy link
Author

Uh, it's a shame we need to add an extra dependency. Thanks for your help anyway.

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

No branches or pull requests

2 participants