(origin?: string)
| 97 | import { assertChatEmbedAllowed, setChatAuthCookie, validateChatAuth } from '@/app/api/chat/utils' |
| 98 | |
| 99 | function chatRequest(origin?: string): NextRequest { |
| 100 | return new NextRequest('https://www.sim.ai/api/chat/abc', { |
| 101 | headers: origin ? { origin } : undefined, |
| 102 | }) |
| 103 | } |
| 104 | |
| 105 | describe('Chat API Utils', () => { |
| 106 | beforeEach(() => { |