mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 11:42:24 +08:00
Nick: preview token tests
This commit is contained in:
parent
44057cc7d6
commit
be35b32306
|
@ -36,6 +36,14 @@ describe('E2E Tests for API Routes', () => {
|
|||
.send({ url: 'https://firecrawl.dev' });
|
||||
expect(response.statusCode).toBe(401);
|
||||
});
|
||||
it('should return a successful response with a valid preview token', async () => {
|
||||
const response = await request(TEST_URL)
|
||||
.post('/v0/scrape')
|
||||
.set('Authorization', `Bearer this_is_just_a_preview_token`)
|
||||
.set('Content-Type', 'application/json')
|
||||
.send({ url: 'https://firecrawl.dev' });
|
||||
expect(response.statusCode).toBe(200);
|
||||
});
|
||||
|
||||
it('should return a successful response with a valid API key', async () => {
|
||||
const response = await request(TEST_URL)
|
||||
|
|
Loading…
Reference in New Issue
Block a user