MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / step4_router

Function step4_router

apps/web/__tests__/invites.test.ts:320–342  ·  view source on GitHub ↗
(store: storeType)

Source from the content-addressed store, hash-verified

318}
319
320async function step4_router(store: storeType) {
321 let location: string = '';
322 await testApiHandler({
323 handler: handlerRouter,
324 url: `/api/router`,
325 test: async ({ fetch }) => {
326 const response = await fetch({
327 method: 'GET',
328 redirect: 'manual',
329 headers: {
330 Authorization: `Bearer ${store.invited.token}`,
331 },
332 });
333
334 expect(response.status).toEqual(307);
335 expect(response.headers).toBeDefined();
336
337 location = response.headers.get('location');
338 expect(location).toBeDefined();
339 },
340 });
341 return new URL(location).pathname;
342}
343
344async function step5_postThread(store: storeType) {
345 await testApiHandler({

Callers 1

invites.test.tsFile · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected