mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-07-31 21:42:00 +08:00
add test + bump sdk
This commit is contained in:
parent
97a473d3de
commit
8c51c3c27a
@ -85,6 +85,18 @@ describe("Scrape tests", () => {
|
|||||||
// }, 30000);
|
// }, 30000);
|
||||||
// });
|
// });
|
||||||
|
|
||||||
|
describe("Compare format", () => {
|
||||||
|
it.concurrent("works", async () => {
|
||||||
|
const response = await scrape({
|
||||||
|
url: "https://example.com",
|
||||||
|
formats: ["markdown", "compare"],
|
||||||
|
});
|
||||||
|
|
||||||
|
expect(response.compare).toBeDefined();
|
||||||
|
expect(response.compare?.previousScrapeAt).not.toBeNull();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
describe("Location API (f-e dependant)", () => {
|
describe("Location API (f-e dependant)", () => {
|
||||||
it.concurrent("works without specifying an explicit location", async () => {
|
it.concurrent("works without specifying an explicit location", async () => {
|
||||||
await scrape({
|
await scrape({
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mendable/firecrawl-js",
|
"name": "@mendable/firecrawl-js",
|
||||||
"version": "1.21.0",
|
"version": "1.21.1",
|
||||||
"description": "JavaScript SDK for Firecrawl API",
|
"description": "JavaScript SDK for Firecrawl API",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user