(expectedLog)
| 311 | } |
| 312 | |
| 313 | export function assertLog(expectedLog) { |
| 314 | const actualLog = SchedulerMock.unstable_clearLog(); |
| 315 | if (equals(actualLog, expectedLog)) { |
| 316 | return; |
| 317 | } |
| 318 | |
| 319 | const error = new Error(` |
| 320 | Expected sequence of events did not occur. |
| 321 | |
| 322 | ${diff(expectedLog, actualLog)} |
| 323 | `); |
| 324 | Error.captureStackTrace(error, assertLog); |
| 325 | throw error; |
| 326 | } |
| 327 | |
| 328 | export const assertConsoleLogDev = createLogAssertion( |
| 329 | 'log', |
no test coverage detected