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

Enable no-unused-expressions ESLint rule #101

Merged
merged 1 commit into from
Jan 7, 2016

Conversation

iancmyers
Copy link
Contributor

This enables the no-unused-expressions ESLint rule and fixes the corresponding violations. In fixing the errors I stumbled upon two tests that were broken. After discussing with @lelandrichardson, I've inverted the test case as the current behavior is the desired behavior.

Fixes #97

@lelandrichardson
Copy link
Collaborator

LGTM

@@ -13,7 +13,7 @@ Returns a wrapper with the direct parent of the node in the current wrapper.

```jsx
const wrapper = mount(<ToDoList />);
expect(wrapper.find('ul').parent().is('div')).to.be.true;;
expect(wrapper.find('ul').parent().is('div')).to.equal(true);;
Copy link
Member

Choose a reason for hiding this comment

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

double semicolon

@ljharb
Copy link
Member

ljharb commented Jan 7, 2016

LGTM, only the 2 nonblockers of the pre-existing double semicolons (those statements are REALLY terminated)

@iancmyers iancmyers force-pushed the enable-no-unused-expressions branch from f5a0358 to 23d6bd2 Compare January 7, 2016 17:59
@iancmyers
Copy link
Contributor Author

@ljharb Went ahead and removed those extra semicolons.

This enables the `no-unused-expressions` ESLint rule and fixes the
corresponding violations. In fixing the errors I stumbled upon two
tests that were broken. After discussing with @lelandrichardson, I've
inverted the test case as the current behavior is the desired behavior.
@iancmyers iancmyers force-pushed the enable-no-unused-expressions branch from 23d6bd2 to cb9419f Compare January 7, 2016 18:11
ljharb added a commit that referenced this pull request Jan 7, 2016
[Refactor] Enable no-unused-expressions ESLint rule
@ljharb ljharb merged commit e9fc572 into enzymejs:master Jan 7, 2016
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.

Convert all usages of noop mocha expressions to function matchers
3 participants