An error thrown by the @augment-vir/assert package when an assertion fails.
This requires both a baseMessage (the default "this thing failed" error message defined inside
@augment-vir/assert for each assert method), and a possibly-undefined userCustomizedMessage
(the optional user-defined failure message for any assertion).
// the message from this error will be: `'User defined message: The assertion failed.'` thrownewAssertionError('The assertion failed.', 'User defined message.');
An error thrown by the
@augment-vir/assert
package when an assertion fails.This requires both a
baseMessage
(the default "this thing failed" error message defined inside@augment-vir/assert
for each assert method), and a possibly-undefineduserCustomizedMessage
(the optional user-defined failure message for any assertion).Example
Package
@augment-vir/assert