* Performs negative assertion. * Fails if comparator function with provided arguments returns true
()
| 43 | * Fails if comparator function with provided arguments returns true |
| 44 | */ |
| 45 | negate() { |
| 46 | this.addAssertParams.apply(this, arguments) |
| 47 | const result = this.comparator.apply(this.params, arguments) |
| 48 | if (!result) return // should increase global assertion counter |
| 49 | throw this.getFailedNegation() |
| 50 | } |
| 51 | |
| 52 | /** |
| 53 | * Used to save additional parameters passed to assert/negate |
no test coverage detected