()
| 1921 | expect(row?.last_health).toMatchObject({ status: "expired" }); |
| 1922 | |
| 1923 | const grantRequests = () => |
| 1924 | server.requests.pipe( |
| 1925 | Effect.map( |
| 1926 | (all) => |
| 1927 | all.filter((r) => r.path === "/token" && r.body.includes("refresh_token")).length, |
| 1928 | ), |
| 1929 | ); |
| 1930 | const sentBefore = yield* grantRequests(); |
| 1931 | expect(sentBefore).toBe(1); |
| 1932 |