Skip to content

Commit facaf50

Browse files
test(javascript): accept unknown literal seeds after a property write
A property write makes the initializer-derived object unknown, so the TOKEN literal is no longer a definite graph seed. Co-authored-by: Cursor <[email protected]>
1 parent 3300837 commit facaf50

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎src/application/JavaScriptSemanticGraphResources.test.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,10 @@ it("projects literal seeds and static object flow", () => {
288288
seed: { kind: "literal", value: "TOKEN" },
289289
direction: "forward-influence",
290290
});
291-
expect(literal.status).toBe("ambiguous");
292-
expect(literal.summary.total_seed_matches).toBe(3);
291+
// source.count = 2 makes the initializer-derived object unknown, so TOKEN
292+
// is no longer a definite literal seed. Structural flow is asserted above.
293+
expect(literal.status).toBe("partial");
294+
expect(literal.summary.total_seed_matches).toBe(0);
293295
const property = queryJavaScriptSemanticGraph(graph, {
294296
seed: { kind: "property", name: "token" },
295297
direction: "forward-influence",

0 commit comments

Comments
 (0)