(v: string)
| 194 | it("should roundtrip with custom encode/decode", () => { |
| 195 | const encode = (v: string) => Buffer.from(v, "utf8").toString("base64"); |
| 196 | const decode = (v: string) => Buffer.from(v, "base64").toString("utf8"); |
| 197 | const cookies = { data: "hello world" }; |
| 198 | const str = stringifyCookie(cookies, { encode }); |
| 199 | expect(parseCookie(str, { decode })).toEqual(cookies); |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…