(options: AssertOptions)
| 199 | } |
| 200 | |
| 201 | assert(options: AssertOptions): void { |
| 202 | const result = this.match(options) |
| 203 | if (!result.pass) { |
| 204 | const snapshotState = this.getSnapshotState(options.filepath) |
| 205 | throw createMismatchError( |
| 206 | result.message(), |
| 207 | snapshotState.expand, |
| 208 | result.actual, |
| 209 | result.expected, |
| 210 | ) |
| 211 | } |
| 212 | } |
| 213 | |
| 214 | matchDomain(options: AssertDomainOptions): MatchResult { |
| 215 | const { |
no test coverage detected