* Performs positive assertion. * Fails if comparator function with provided arguments returns false
()
| 32 | * Fails if comparator function with provided arguments returns false |
| 33 | */ |
| 34 | assert() { |
| 35 | this.addAssertParams.apply(this, arguments) |
| 36 | const result = this.comparator.apply(this.params, arguments) |
| 37 | if (result) return // should increase global assertion counter |
| 38 | throw this.getFailedAssertion() |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * Performs negative assertion. |
no test coverage detected