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

Fix false positives with no-jasmine-globals #205

Merged
merged 4 commits into from
Nov 25, 2018

Conversation

jdelStrother
Copy link
Contributor

See #156. WDYT?

Not that exciting right now, but the upcoming commit needs the grouped if-block anyway.
Want to re-use it for no-jasmine-globals
@jdelStrother
Copy link
Contributor Author

jdelStrother commented Nov 17, 2018

Travis is upset about my commit message:

⧗   input: 
fix(no-jasmine-globals): Fix false positives for pending/fail/spyOn
Prior to this, similarly named local variables & parameters would trigger the
no-jasmine-globals warning
Fixes #156
✖   subject must not be sentence-case, start-case, pascal-case, upper-case [subject-case]

Is that because of the capital "O" in spyOn?

[Update: Oh, it's the capital F in Fix]

Prior to this, similarly named local variables & parameters would trigger the
no-jasmine-globals warning

Fixes jest-community#156
rules/no-jasmine-globals.js Outdated Show resolved Hide resolved
@SimenB
Copy link
Member

SimenB commented Nov 19, 2018

This is great, thanks! I left a nit, but would love for @macklinu to chime in as well before merging 🙂

@SimenB
Copy link
Member

SimenB commented Nov 20, 2018

@macklinu could you take a look when you find the time? Feel free to merge (squash merge, make sure the commit message is semantic) if it's OK 🙂

@SimenB SimenB merged commit edbd1a2 into jest-community:master Nov 25, 2018
@SimenB
Copy link
Member

SimenB commented Nov 25, 2018

🎉 This PR is included in version 22.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@macklinu
Copy link
Collaborator

@SimenB sorry I didn’t get a chance to look before merging. Have been away from the computer for Thanksgiving holiday. This change looks great though! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants