MCPcopy
hub / github.com/freeCodeCamp/freeCodeCamp / getCookies

Function getCookies

api/vitest.utils.ts:39–44  ·  view source on GitHub ↗
(setCookies: string[])

Source from the content-addressed store, hash-verified

37const ORIGIN = 'https://www.freecodecamp.org';
38
39export const getCookies = (setCookies: string[]): string => {
40 for (const cookie of setCookies) {
41 expect(cookie).toMatch(/.*=.*/);
42 }
43 return setCookies.map(cookie => cookie.split(';')[0]).join('; ');
44};
45
46/**
47 * A wrapper around supertest that handles common setup for requests. Namely

Callers 2

superRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected