diff --git a/docs/api-assert-values.html b/docs/api-assert-values.html index 807d563..796d7df 100644 --- a/docs/api-assert-values.html +++ b/docs/api-assert-values.html @@ -439,7 +439,8 @@
Assert that a mixin or function triggers an @error
.
Optional message to check against the emitted message. +The emitted message must contain the expected message, +allowing for partial message validation. +This is a case-insensitive check.
+ +@include test('Some mixin does what it is supposed to do') {
+ @include assert-error('must pass valid params'){
+ @include some-mixin($bad-params);
+ }
+}
+ /* Test: Some mixin does what it is supposed to do */
+/* */
+
+ Executes the @content
block for an assert-error
test.
+This is used inside a try/catch block in the lib/main.js file.
Arguments are ignored
+ +This is used when a call to _assert-error-execute
does indeed throw an
+error and the optional message matches what was expected. This is a proxy
+to the assert-true
mixin so as to indicate a successful test.
The expected message
+ +This is used when a call to _assert-error-execute
fails in one of two ways:
This is a proxy to the assert-equal
mixin so as to indicate that
+the actual result does not match the expected result.
The actual message
+ +The expected message
+ +