(
/** @type {IFs} */ fs,
/** @type {Snapshot | null | undefined} */ snapshot,
/** @type {Snapshot | null | undefined} */ snapshot2,
/** @type {boolean} */ expected,
/** @type {(err?: Error | null) => void} */ callback
)
| 216 | }; |
| 217 | |
| 218 | const expectSnapshotsState = ( |
| 219 | /** @type {IFs} */ fs, |
| 220 | /** @type {Snapshot | null | undefined} */ snapshot, |
| 221 | /** @type {Snapshot | null | undefined} */ snapshot2, |
| 222 | /** @type {boolean} */ expected, |
| 223 | /** @type {(err?: Error | null) => void} */ callback |
| 224 | ) => { |
| 225 | expectSnapshotState(fs, snapshot, expected, (err) => { |
| 226 | if (err) return callback(err); |
| 227 | if (!snapshot2) return callback(); |
| 228 | expectSnapshotState(fs, snapshot2, expected, callback); |
| 229 | }); |
| 230 | }; |
| 231 | |
| 232 | const expectSnapshotState = ( |
| 233 | /** @type {IFs} */ fs, |
no test coverage detected