Add document validation in project-document-json test
This commit is contained in:
@@ -44,6 +44,7 @@ import {
|
|||||||
import { createProjectScheduleRoutine } from "../../src/scheduler/project-scheduler";
|
import { createProjectScheduleRoutine } from "../../src/scheduler/project-scheduler";
|
||||||
import { createProjectSequence } from "../../src/sequencer/project-sequences";
|
import { createProjectSequence } from "../../src/sequencer/project-sequences";
|
||||||
import { createRunSequenceInteractionLink } from "../../src/interactions/interaction-links";
|
import { createRunSequenceInteractionLink } from "../../src/interactions/interaction-links";
|
||||||
|
import { assertProjectDocumentIsValid } from "../../src/document/scene-document-validation";
|
||||||
import {
|
import {
|
||||||
parseProjectDocumentJson,
|
parseProjectDocumentJson,
|
||||||
serializeProjectDocument
|
serializeProjectDocument
|
||||||
@@ -1086,7 +1087,9 @@ describe("project document JSON", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
expect(() =>
|
expect(() =>
|
||||||
parseProjectDocumentJson(JSON.stringify(document))
|
assertProjectDocumentIsValid(
|
||||||
|
parseProjectDocumentJson(JSON.stringify(document))
|
||||||
|
)
|
||||||
).toThrow("target entry");
|
).toThrow("target entry");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user