fix: complete state-contract naming cleanup
This commit is contained in:
@@ -197,12 +197,12 @@ Deno.test("config source API rejects mismatched entry map paths", async () => {
|
||||
);
|
||||
});
|
||||
|
||||
Deno.test("config source API rejects removed snapshot revision fields and oversized entry content", () => {
|
||||
Deno.test("config source API rejects unknown snapshot fields and oversized entry content", () => {
|
||||
assertThrows(
|
||||
() =>
|
||||
parseWorkspaceConfigTreeResponse({
|
||||
...tree,
|
||||
snapshot: { ...snapshot, revision: 7 },
|
||||
snapshot: { ...snapshot, unexpected_field: true },
|
||||
}),
|
||||
ConfigSourceApiError,
|
||||
"invalid response",
|
||||
|
||||
@@ -169,7 +169,6 @@ Deno.test("generated WASM diagnostics carry snapshot provenance", () => {
|
||||
}>;
|
||||
assertEquals(diagnostics[0].path, "workspace.dcdl");
|
||||
assertEquals(diagnostics[0].tree_digest, fixtureSnapshot(snapshot).digest);
|
||||
assertEquals("revision" in diagnostics[0], false);
|
||||
assertEquals(diagnostics[0].kind, "syntax");
|
||||
});
|
||||
|
||||
@@ -938,7 +937,6 @@ Deno.test("generated WASM returns to the same content digest and enforces entry
|
||||
content: "{ broken = ; }",
|
||||
}]) as ConfigTreeSnapshot;
|
||||
assertEquals(changed.digest === base.digest, false);
|
||||
assertEquals("revision" in changed, false);
|
||||
const diagnostics = analyze_snapshot(changed, "main.dcdl", undefined) as Array<{ tree_digest: string }>;
|
||||
assertEquals(diagnostics.length > 0, true);
|
||||
assertEquals(diagnostics.every((diagnostic) => diagnostic.tree_digest === changed.digest), true);
|
||||
|
||||
Reference in New Issue
Block a user