(clientSecret: string)
| 290 | /** The registration used by the secret-lifecycle tests below, parameterised only |
| 291 | * by the secret so each one can prove which incarnation's secret survived. */ |
| 292 | const userClient = (clientSecret: string) => |
| 293 | ({ |
| 294 | owner: "user", |
| 295 | slug: USER_CLIENT, |
| 296 | authorizationUrl: "https://acme.test/authorize", |
| 297 | tokenUrl: "https://acme.test/token", |
| 298 | grant: "authorization_code", |
| 299 | clientId: "user-client-id", |
| 300 | clientSecret, |
| 301 | }) as const; |
| 302 | |
| 303 | describe("removing a client defers the secret deletion to the outermost commit", () => { |
| 304 | it.effect("a rolled-back removal leaves the client secret intact", () => |
no outgoing calls
no test coverage detected