()
| 1027 | expect(row?.last_health).toMatchObject({ status: "expired" }); |
| 1028 | |
| 1029 | const grantRequests = () => |
| 1030 | server.requests.pipe( |
| 1031 | Effect.map( |
| 1032 | (all) => |
| 1033 | all.filter((r) => r.path === "/token" && r.body.includes("refresh_token")).length, |
| 1034 | ), |
| 1035 | ); |
| 1036 | const sentBefore = yield* grantRequests(); |
| 1037 | expect(sentBefore).toBe(1); |
| 1038 |