MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / expectRedirectLocation

Function expectRedirectLocation

apps/web/src/app/github/link/route.test.ts:35–40  ·  view source on GitHub ↗
(response: Response, expectedPathWithQuery: string)

Source from the content-addressed store, hash-verified

33}
34
35function expectRedirectLocation(response: Response, expectedPathWithQuery: string) {
36 const location = response.headers.get('location');
37 expect(location).toBeTruthy();
38 const url = new URL(location ?? '');
39 expect(`${url.pathname}${url.search}`).toBe(expectedPathWithQuery);
40}
41
42describe('GET /github/link', () => {
43 beforeEach(() => {

Callers 1

route.test.tsFile · 0.70

Calls 1

getMethod · 0.65

Tested by

no test coverage detected