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
Add method for defining custom assertions #581
Comments
Closely related to #533 |
@leobalter: Not that closely related, I'd say. #533 is more about composing/aggregating assertions, whereas this one is simply about introducing an API abstraction for adding new assertions to the I'm not sure that this is truly necessary as we can just assume that |
Yes, and extending QUnit.assert allows the method to call |
Agreed, extending |
We currently suggest adding function properties to
QUnit.assert
, though considering the plans in #374, this might actually be a bad idea. If we make the assert argument an instance with a prototype, we may want to remove the globalQUnit.assert
and instead offer a method for defining custom assertions. Can be a very simple signature like this:We really need a prototype for #374 to see if that is feasible and evaluate this and some other discussions.
The text was updated successfully, but these errors were encountered: