()
| 1676 | expect(row?.last_health).toMatchObject({ status: "expired" }); |
| 1677 | |
| 1678 | const grantRequests = () => |
| 1679 | server.requests.pipe( |
| 1680 | Effect.map( |
| 1681 | (all) => |
| 1682 | all.filter((r) => r.path === "/token" && r.body.includes("refresh_token")).length, |
| 1683 | ), |
| 1684 | ); |
| 1685 | const sentBefore = yield* grantRequests(); |
| 1686 | expect(sentBefore).toBe(1); |
| 1687 |