()
| 1100 | expect(row?.last_health).toMatchObject({ status: "expired" }); |
| 1101 | |
| 1102 | const grantRequests = () => |
| 1103 | server.requests.pipe( |
| 1104 | Effect.map( |
| 1105 | (all) => |
| 1106 | all.filter((r) => r.path === "/token" && r.body.includes("refresh_token")).length, |
| 1107 | ), |
| 1108 | ); |
| 1109 | const sentBefore = yield* grantRequests(); |
| 1110 | expect(sentBefore).toBe(1); |
| 1111 |