Unified · Split
| @@ -5,7 +5,7 @@ · 4 unmodified lines | ||
| 5 | 5 | // callback refusing forged/incomplete redirects, the sealed-session cookie |
| 6 | 6 | // actually authorizing the session API, and logout dropping the cookie. |
| 7 | 7 | import { expect } from "@effect/vitest"; |
| 8 | −import { Effect, Encoding, Result, Schema } from "effect"; | |
| 8 | +import { Effect, Encoding, Option, Result, Schema } from "effect"; | |
| 9 | 9 | |
| 10 | 10 | import { scenario } from "../src/scenario"; |
| 11 | 11 | import { Api, Target } from "../src/services"; |
| @@ -85,7 +85,7 @@ scenario( · 73 unmodified lines | ||
| 85 | 85 | Result.getOrElse(Encoding.decodeBase64UrlString(state), () => ""), |
| 86 | 86 | ); |
| 87 | 87 | expect(decoded._tag).toBe("Some"); |
| 88 | − if (decoded._tag === "Some") expect(decoded.value.returnTo).toBeUndefined(); | |
| 88 | + expect(Option.getOrThrow(decoded).returnTo).toBeUndefined(); | |
| 89 | 89 | } |
| 90 | 90 | }), |
| 91 | 91 | ); |