MCPcopy Index your code
hub / github.com/simstudioai/sim / createMockRequest

Function createMockRequest

apps/sim/app/api/schedules/execute/route.test.ts:238–250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

236}
237
238function createMockRequest(): NextRequest {
239 const mockHeaders = new Map([
240 ['authorization', 'Bearer test-cron-secret'],
241 ['content-type', 'application/json'],
242 ])
243
244 return {
245 headers: {
246 get: (key: string) => mockHeaders.get(key.toLowerCase()) || null,
247 },
248 url: 'http://localhost:3000/api/schedules/execute',
249 } as NextRequest
250}
251
252describe('Scheduled Workflow Execution API Route', () => {
253 beforeEach(() => {

Callers 1

route.test.tsFile · 0.70

Calls 1

getMethod · 0.65

Tested by

no test coverage detected