Function
fail
(actual, expected, message, operator, stackStartFunction)
Source from the content-addressed store, hash-verified
| 110 | // display purposes. |
| 111 | |
| 112 | function fail(actual, expected, message, operator, stackStartFunction) { |
| 113 | throw new assert.AssertionError({ |
| 114 | message: message, |
| 115 | actual: actual, |
| 116 | expected: expected, |
| 117 | operator: operator, |
| 118 | stackStartFunction: stackStartFunction |
| 119 | }); |
| 120 | } |
| 121 | |
| 122 | // EXTENSION! allows for well behaved errors defined elsewhere. |
| 123 | assert.fail = fail; |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…