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
Break toss() into methods and test the key behaviors of after() callbacks #32
Break toss() into methods and test the key behaviors of after() callbacks #32
Conversation
- Improve readability by making the methods shorter. - Avoid using `it` as an identifier, since it is a Mocha global. - Remove parameter to `toss()`, which is redundant with `retry()`, and was broken - Remove useless assignment to `retry` variable
There's a failing test in here, the fix for which is in #28. |
Got 👍 offline from @cvega. |
* @return {object} | ||
* @desc Run the current Frisby test | ||
*/ | ||
Frisby.prototype.toss = function (retry) { |
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.
At present, the retry
parameter is broken. Does anyone know how recently it worked? Trying to judge whether or not it's a breaking change. If it's never worked for example, then removing it would certainly not be a breaking change.
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.
Despite completely refactoring this library, I don't recall ever even using it or seeing it used.
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.
Okay. Let's consider this a "hygiene" change, then. We're nominally removing a parameter, but it's vestigial and doesn't do anything, so it's like a bug fix, and we'll bump the patch version.
# Conflicts: # lib/icedfrisby.js
No description provided.