MCPcopy Create free account
hub / github.com/Effect-TS/effect / assertCookieError

Function assertCookieError

packages/platform/test/Cookies.test.ts:6–8  ·  view source on GitHub ↗
(f: () => void, message: Cookies.CookiesError["reason"])

Source from the content-addressed store, hash-verified

4import { Either, Option } from "effect"
5
6const assertCookieError = (f: () => void, message: Cookies.CookiesError["reason"]) => {
7 throws(f, new Cookies.CookiesError({ reason: message }))
8}
9
10describe("Cookies", () => {
11 it("makeCookie rejects cookie attribute separators", () => {

Callers 1

Cookies.test.tsFile · 0.85

Calls 1

throwsFunction · 0.90

Tested by

no test coverage detected