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

Throw if some() is called on a root wrapper #523

Merged
merged 1 commit into from
Aug 2, 2016

Conversation

aweary
Copy link
Collaborator

@aweary aweary commented Aug 1, 2016

Resolves #510 (comment) per @ljharb's recommendation.

@ljharb
Copy link
Member

ljharb commented Aug 1, 2016

LGTM. It seems like although this could be a breaking change, that since the selectors couldn't have possibly worked before, we can consider it just a bugfix. Confirm?

@aweary
Copy link
Collaborator Author

aweary commented Aug 1, 2016

It would have "worked" in the sense that it just tested whether the root node matched the selector, which seems like incorrect behavior for this API. So I would consider this a bugfix as well.

@blainekasten blainekasten merged commit ff2f260 into enzymejs:master Aug 2, 2016
pmeinhardt added a commit to bitcrowd/tickety-tick that referenced this pull request Oct 31, 2016
Enzyme incoroporated a breaking change, which still matched our version
specification for the npm package. The change caused our Travis build to
fail. This commit updates the spec accordingly.

See:

- enzymejs/enzyme#523
- enzymejs/enzyme#510 (comment)
pmeinhardt added a commit to bitcrowd/tickety-tick that referenced this pull request Nov 27, 2016
Enzyme incoroporated a breaking change, which still matched our version
specification for the npm package. The change caused our Travis build to
fail. This commit updates the spec accordingly.

See:

- enzymejs/enzyme#523
- enzymejs/enzyme#510 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants