You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to accommodate testing functions with more than one parameter, as well as functions that need to be called in a specific context, the requires helper will be modified to be used in the following way:
With the above example, the return value would be something similar to:
[
{ passed: true, message: 'object should not be accepted' },
{ passed: false, message: 'array should be accepted' },
{ passed: false, message: 'string should be accepted' }
]
This return value can then be iterated to form the assertions in whatever testing library is being used.
In order to accommodate testing functions with more than one parameter, as well as functions that need to be called in a specific context, the
requires
helper will be modified to be used in the following way:With the above example, the return value would be something similar to:
This return value can then be iterated to form the assertions in whatever testing library is being used.
Closes #58
Closes #66
The text was updated successfully, but these errors were encountered: