-
Notifications
You must be signed in to change notification settings - Fork 783
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
Replace push(result, actual, expected, message, negative) with object signature #827
Comments
Regarding a different name: How about something like Certainly open to other suggestions, of course. |
|
Seems |
How about just |
Personally, I would say |
Let's go with |
Fixes qunitjsgh-827 Closes qunitjsgh-920 The new pushResult method replaces Assert#push and works in the same way, but with single parameter to fetch all the data .push received as individual parameters. The current assertions already use the new method, while .push is still present, and it's now a deprecated method, expected to be removed on the next major version, but updated to map to the newly added method.
As discussed in #822, the now even longer signature for
.push()
is bad. Especially with ES6 an object signature would work very well,.push({ result, actual, expected, message, negative })
.As I also mentioned in that PR: If we deprecate the current signature anyway, we might as well come up with a better name, since
push
is very generic. Any ideas for a better name?The text was updated successfully, but these errors were encountered: