Add factory creation ports and owner initialization contracts
This commit is contained in:
@@ -82,7 +82,7 @@ test("dependency scaffolding validates exact sources and preserves unrelated loc
|
||||
});
|
||||
|
||||
test("conformance enrollment, major edits, imports, and private attachment removal preserve valid structure", () => {
|
||||
const source = `fragment { conform Game as Playable { private state Board id "slot:board" on Game : string policy optimistic-register; } }`;
|
||||
const source = `fragment { conform Game as Playable { private state Board id "slot:board" on Game : string policy register; } }`;
|
||||
const selector = { kind: "conformanceDecl", names: ["Game", "Playable"] };
|
||||
const enrolled = editStructure(source, { operation: "conformance-id", target: selector, id: "conformance:playable" });
|
||||
assert.ok(enrolled.includes('as Playable id "conformance:playable"'));
|
||||
|
||||
Reference in New Issue
Block a user