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

expect: Make change requested in toThrowMatchers #7718

Merged

Conversation

pedrottimark
Copy link
Contributor

Summary

Not necessary to update change log, true?

Test plan

All existing tests pass

@SimenB
Copy link
Member

SimenB commented Jan 26, 2019

Not necessary to update change log, true?

Nope 🙂

@pedrottimark
Copy link
Contributor Author

@SimenB do you have style preference between if-return-followed-by-return versus return ternary?

@SimenB
Copy link
Member

SimenB commented Jan 26, 2019

Personally, not really. If the ternary is short enough (usually return thing ? left: right) I think that's fine. But if it's thisThing === 'maybe' && thisOtherThing ? left: right then I find it less readable

@codecov-io
Copy link

Codecov Report

Merging #7718 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #7718   +/-   ##
=======================================
  Coverage   68.27%   68.27%           
=======================================
  Files         252      252           
  Lines        9682     9682           
  Branches        6        5    -1     
=======================================
  Hits         6610     6610           
  Misses       3070     3070           
  Partials        2        2
Impacted Files Coverage Δ
packages/expect/src/toThrowMatchers.js 97.59% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 88713fc...8b25296. Read the comment docs.

@SimenB SimenB merged commit 7d54557 into jestjs:master Jan 29, 2019
@pedrottimark pedrottimark deleted the changes-requested-toThrowMatchers branch January 29, 2019 16:17
captain-yossarian pushed a commit to captain-yossarian/jest that referenced this pull request Jul 18, 2019
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants