MCPcopy Index your code
hub / github.com/Effect-TS/effect / assertCookieError

Function assertCookieError

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

Source from the content-addressed store, hash-verified

3import { throws } from "@effect/vitest/utils"
4
5const assertCookieError = (f: () => void, message: Cookies.CookiesError["reason"]) => {
6 throws(f, new Cookies.CookiesError({ reason: message }))
7}
8
9describe("Cookies", () => {
10 it("unsafeMakeCookie", () => {

Callers 1

Cookies.test.tsFile · 0.85

Calls 1

throwsFunction · 0.90

Tested by

no test coverage detected