Skip to content

Commit f340e7e

Browse files
committed
fix: failing tests
1 parent 78d62e6 commit f340e7e

9 files changed

Lines changed: 8 additions & 11 deletions

apps/api/src/nodes/email/parse-email-node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export class ParseEmailNode extends ExecutableNode {
129129
const rawEmail = context.inputs?.raw as string | undefined;
130130

131131
if (typeof rawEmail !== "string") {
132-
throw new Error(
132+
return this.createErrorResult(
133133
"Raw email content (string) is required but not provided in the input."
134134
);
135135
}

apps/api/src/nodes/geo/bbox-node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class BboxNode extends ExecutableNode {
1111
type: "bbox",
1212
description:
1313
"Calculates the bounding box of any GeoJSON feature in [minX, minY, maxX, maxY] format.",
14-
tags: ["Geo"],
14+
tags: ["Geo", "Turf"],
1515
icon: "square-dashed",
1616
inlinable: true,
1717
inputs: [

apps/api/src/nodes/geo/bbox-polygon-node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export class BboxPolygonNode extends ExecutableNode {
1010
name: "Bbox Polygon",
1111
type: "bboxPolygon",
1212
description: "Takes a bbox and returns an equivalent polygon.",
13-
tags: ["Geo"],
13+
tags: ["Geo", "Turf"],
1414
icon: "square",
1515
inlinable: true,
1616
inputs: [

apps/api/src/nodes/geo/boolean-crosses-node.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,8 +271,7 @@ describe("BooleanCrossesNode", () => {
271271
expect(BooleanCrossesNode.nodeType.name).toBe("Boolean Crosses");
272272
expect(BooleanCrossesNode.nodeType.type).toBe("booleanCrosses");
273273
expect(BooleanCrossesNode.nodeType.tags).toContain("Geo");
274-
expect(BooleanCrossesNode.nodeType.tags).toContain("Boolean");
275-
expect(BooleanCrossesNode.nodeType.tags).toContain("Crosses");
274+
expect(BooleanCrossesNode.nodeType.tags).toContain("Turf");
276275
});
277276

278277
it("should have correct input definitions", () => {

apps/api/src/nodes/geo/boolean-crosses-node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class BooleanCrossesNode extends ExecutableNode {
1111
type: "booleanCrosses",
1212
description:
1313
"Tests whether two geometries cross each other (intersect but do not contain each other).",
14-
tags: ["Geo"],
14+
tags: ["Geo", "Turf"],
1515
icon: "x",
1616
inlinable: true,
1717
inputs: [

apps/api/src/nodes/geo/boolean-overlap-node.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,6 @@ describe("BooleanOverlapNode", () => {
234234
);
235235
expect(nodeType.tags).toContain("Geo");
236236
expect(nodeType.tags).toContain("Turf");
237-
expect(nodeType.tags).toContain("Boolean");
238-
expect(nodeType.tags).toContain("Overlap");
239237
});
240238

241239
it("should have correct input definitions", () => {

apps/api/src/nodes/geo/boolean-overlap-node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class BooleanOverlapNode extends ExecutableNode {
1111
type: "booleanOverlap",
1212
description:
1313
"Compares two geometries of the same dimension and returns true if their intersection set results in a geometry different from both but of the same dimension. Applies to Polygon/Polygon, LineString/LineString, Multipoint/Multipoint, MultiLineString/MultiLineString and MultiPolygon/MultiPolygon.",
14-
tags: ["Geo"],
14+
tags: ["Geo", "Turf"],
1515
icon: "intersect",
1616
inlinable: true,
1717
inputs: [

apps/api/src/nodes/geo/linestring-node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class LineStringNode extends ExecutableNode {
1111
type: "lineString",
1212
description:
1313
"Creates a LineString feature from an array of coordinate pairs.",
14-
tags: ["Geo"],
14+
tags: ["Geo", "Turf"],
1515
icon: "route",
1616
inlinable: true,
1717
inputs: [

apps/api/src/nodes/geo/point-node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class PointNode extends ExecutableNode {
1111
type: "point",
1212
description:
1313
"Creates a Point feature from x, y coordinates with optional z.",
14-
tags: ["Geo"],
14+
tags: ["Geo", "Turf"],
1515
icon: "map-pin",
1616
inlinable: true,
1717
inputs: [

0 commit comments

Comments
 (0)