-
Notifications
You must be signed in to change notification settings - Fork 21
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
Introduce isUndefined, deprecate defined #93
Conversation
I understand "deprecated" as "prints a warning when used, but works as before". You removed it 😏 This is fine with me, it just makes it a necessity to replace all |
That is my understanding too. I'd much prefer to give people a gentle warning, than break their tests immediately. Perhaps first we can move https://github.com/sinonjs/sinon/blob/master/lib/sinon/util/core/deprecated.js t https://github.com/sinonjs/commons and then use it from there? |
🤦♂️ You're right! Showing a message is the way better option here 😅 Do you think a simple Thanks a lot for your thoughts and review 👍 |
👍
Cool, thanks for pointing that out. I will make a PR in the Thank you very much 🙌 |
move module to deprecate functions to commons See: sinonjs/referee#93
* feat(deprecated): add new functionality to deprecate move module to deprecate functions to commons See: sinonjs/referee#93 * test(deprecated): add more tests * corrected typo * format: add spacing
f49dfd9
to
28a2705
Compare
to use deprecated wrapper
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
Cool 👍 Just for documentation purpose. In https://github.com/sinonjs/referee/pull/93/files#diff-560744c83c3809c6fed70c6edc2d433dR11 We need to wrap everthing up because |
Oh I just merged 😕 and maybe a bit too fast? @mantoni anything from you side? |
No worries. This looks good to me 👌 |
This has been published as |
Purpose (TL;DR) - mandatory
This PR introduces an assertion called
isUndefined
that passes when the given value isundefined
. This also deprecates thedefined
assertionBackground (Problem in detail) - optional
See #87 #89
How to verify - mandatory
npm install
npm run test
Checklist for author
npm run lint
passes