()
| 1932 | expect(row?.last_health).toMatchObject({ status: "expired" }); |
| 1933 | |
| 1934 | const grantRequests = () => |
| 1935 | server.requests.pipe( |
| 1936 | Effect.map( |
| 1937 | (all) => |
| 1938 | all.filter((r) => r.path === "/token" && r.body.includes("refresh_token")).length, |
| 1939 | ), |
| 1940 | ); |
| 1941 | const sentBefore = yield* grantRequests(); |
| 1942 | expect(sentBefore).toBe(1); |
| 1943 |