(setCookies: string[])
| 37 | const ORIGIN = 'https://www.freecodecamp.org'; |
| 38 | |
| 39 | export 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 |
no outgoing calls
no test coverage detected