(
passed: boolean,
data: ExpectationResultFactoryOptions,
isError?: boolean,
)
| 157 | } |
| 158 | |
| 159 | addExpectationResult( |
| 160 | passed: boolean, |
| 161 | data: ExpectationResultFactoryOptions, |
| 162 | isError?: boolean, |
| 163 | ) { |
| 164 | const expectationResult = expectationResultFactory(data, this.initError); |
| 165 | if (passed) { |
| 166 | this.result.passedExpectations.push(expectationResult); |
| 167 | } else { |
| 168 | this.result.failedExpectations.push(expectationResult); |
| 169 | |
| 170 | if (this.throwOnExpectationFailure && !isError) { |
| 171 | throw new ExpectationFailed(); |
| 172 | } |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | execute(onComplete?: () => void, enabled?: boolean) { |
| 177 | // eslint-disable-next-line @typescript-eslint/no-this-alias |
no test coverage detected