Add Revit initial import planning
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import assert from "node:assert/strict";
|
||||
import { describe, it } from "node:test";
|
||||
import {
|
||||
planExternalInitialImportSchema,
|
||||
previewExternalCsvSchema,
|
||||
updateExternalCsvConfigurationSchema,
|
||||
} from "../src/shared/validation/external-csv.schemas.js";
|
||||
@@ -23,6 +24,13 @@ describe("external CSV API contracts", () => {
|
||||
}).success,
|
||||
true
|
||||
);
|
||||
assert.equal(
|
||||
planExternalInitialImportSchema.safeParse({
|
||||
fileName: "revit.csv",
|
||||
contentBase64: "YWJj",
|
||||
}).success,
|
||||
true
|
||||
);
|
||||
});
|
||||
|
||||
it("rejects stale-shaped, oversized and unknown request fields", () => {
|
||||
@@ -41,6 +49,14 @@ describe("external CSV API contracts", () => {
|
||||
}).success,
|
||||
false
|
||||
);
|
||||
assert.equal(
|
||||
planExternalInitialImportSchema.safeParse({
|
||||
fileName: "revit.csv",
|
||||
contentBase64: "YWJj",
|
||||
decisions: [],
|
||||
}).success,
|
||||
false
|
||||
);
|
||||
assert.equal(
|
||||
previewExternalCsvSchema.safeParse({
|
||||
fileName: "revit.csv",
|
||||
|
||||
Reference in New Issue
Block a user