Update index.test.ts

This commit is contained in:
Nicolas 2024-11-14 15:06:22 -05:00
parent be5e6da5ff
commit 5056dcd8e9

View File

@ -16,7 +16,7 @@ describe("E2E Tests for Extract API Routes", () => {
.set("Authorization", `Bearer ${process.env.TEST_API_KEY}`) .set("Authorization", `Bearer ${process.env.TEST_API_KEY}`)
.set("Content-Type", "application/json") .set("Content-Type", "application/json")
.send({ .send({
urls: ["https://firecrawl.dev"], urls: ["https://firecrawl.dev/*"],
prompt: "Who are the authors of the blog posts?", prompt: "Who are the authors of the blog posts?",
schema: { schema: {
type: "object", type: "object",
@ -46,7 +46,7 @@ describe("E2E Tests for Extract API Routes", () => {
.set("Authorization", `Bearer ${process.env.TEST_API_KEY}`) .set("Authorization", `Bearer ${process.env.TEST_API_KEY}`)
.set("Content-Type", "application/json") .set("Content-Type", "application/json")
.send({ .send({
urls: ["mendable.ai"], urls: ["mendable.ai/*"],
prompt: "Who are the founders of the company?", prompt: "Who are the founders of the company?",
allowExternalLinks: true, allowExternalLinks: true,
schema: { schema: {
@ -74,7 +74,7 @@ describe("E2E Tests for Extract API Routes", () => {
.set("Authorization", `Bearer ${process.env.TEST_API_KEY}`) .set("Authorization", `Bearer ${process.env.TEST_API_KEY}`)
.set("Content-Type", "application/json") .set("Content-Type", "application/json")
.send({ .send({
urls: ["https://firecrawl.dev"], urls: ["https://firecrawl.dev/*"],
prompt: "What are they hiring for?", prompt: "What are they hiring for?",
allowExternalLinks: true, allowExternalLinks: true,
schema: { schema: {
@ -107,7 +107,7 @@ describe("E2E Tests for Extract API Routes", () => {
.set("Authorization", `Bearer ${process.env.TEST_API_KEY}`) .set("Authorization", `Bearer ${process.env.TEST_API_KEY}`)
.set("Content-Type", "application/json") .set("Content-Type", "application/json")
.send({ .send({
urls: ["fivetran.com"], urls: ["fivetran.com/*"],
prompt: "Does Fivetran have PCI DSS compliance?", prompt: "Does Fivetran have PCI DSS compliance?",
allowExternalLinks: true, allowExternalLinks: true,
schema: { schema: {
@ -128,7 +128,7 @@ describe("E2E Tests for Extract API Routes", () => {
.set("Authorization", `Bearer ${process.env.TEST_API_KEY}`) .set("Authorization", `Bearer ${process.env.TEST_API_KEY}`)
.set("Content-Type", "application/json") .set("Content-Type", "application/json")
.send({ .send({
urls: ["fivetran.com"], urls: ["fivetran.com/*"],
prompt: "What are the Azure Data Connectors they offer?", prompt: "What are the Azure Data Connectors they offer?",
schema: { schema: {
type: "array", type: "array",