@@ -702,7 +702,7 @@ describe('Rust ::default() constructor resolution', () => {
702702
703703 it ( 'detects save methods on both structs' , ( ) => {
704704 const methods = [ ...getNodesByLabel ( result , 'Function' ) , ...getNodesByLabel ( result , 'Method' ) ] ;
705- expect ( methods . filter ( ( m : string ) => m === 'save' ) . length ) . toBeGreaterThanOrEqual ( 2 ) ;
705+ expect ( methods . filter ( ( m : string ) => m === 'save' ) . length ) . toBe ( 2 ) ;
706706 } ) ;
707707
708708 it ( 'resolves user.save() in process_with_new() via User::new() constructor' , ( ) => {
@@ -774,7 +774,7 @@ describe('Rust async .await constructor binding resolution', () => {
774774
775775 it ( 'detects save methods in separate files' , ( ) => {
776776 const methods = [ ...getNodesByLabel ( result , 'Function' ) , ...getNodesByLabel ( result , 'Method' ) ] ;
777- expect ( methods . filter ( ( m : string ) => m === 'save' ) . length ) . toBeGreaterThanOrEqual ( 2 ) ;
777+ expect ( methods . filter ( ( m : string ) => m === 'save' ) . length ) . toBe ( 2 ) ;
778778 } ) ;
779779
780780 it ( 'resolves user.save() after .await to user.rs via return type of get_user()' , ( ) => {
@@ -1322,7 +1322,10 @@ describe('Field type resolution (Rust)', () => {
13221322
13231323 it ( 'emits HAS_PROPERTY edges linking fields to structs' , ( ) => {
13241324 const propEdges = getRelationships ( result , 'HAS_PROPERTY' ) ;
1325- expect ( propEdges . length ) . toBeGreaterThanOrEqual ( 2 ) ;
1325+ expect ( propEdges . length ) . toBe ( 3 ) ;
1326+ expect ( edgeSet ( propEdges ) ) . toContain ( 'User → name' ) ;
1327+ expect ( edgeSet ( propEdges ) ) . toContain ( 'User → address' ) ;
1328+ expect ( edgeSet ( propEdges ) ) . toContain ( 'Address → city' ) ;
13261329 } ) ;
13271330
13281331 it ( 'resolves user.address.save() → Address#save via field type' , ( ) => {
@@ -1362,7 +1365,12 @@ describe('Deep field chain resolution (Rust)', () => {
13621365
13631366 it ( 'emits HAS_PROPERTY edges for nested type chain' , ( ) => {
13641367 const propEdges = getRelationships ( result , 'HAS_PROPERTY' ) ;
1365- expect ( propEdges . length ) . toBeGreaterThanOrEqual ( 3 ) ;
1368+ expect ( propEdges . length ) . toBe ( 5 ) ;
1369+ expect ( edgeSet ( propEdges ) ) . toContain ( 'User → name' ) ;
1370+ expect ( edgeSet ( propEdges ) ) . toContain ( 'User → address' ) ;
1371+ expect ( edgeSet ( propEdges ) ) . toContain ( 'Address → city' ) ;
1372+ expect ( edgeSet ( propEdges ) ) . toContain ( 'Address → street' ) ;
1373+ expect ( edgeSet ( propEdges ) ) . toContain ( 'City → zip_code' ) ;
13661374 } ) ;
13671375
13681376 it ( 'resolves 2-level chain: user.address.save() → Address#save' , ( ) => {
@@ -1396,10 +1404,11 @@ describe('Write access tracking (Rust)', () => {
13961404 it ( 'emits ACCESSES write edges for field assignments' , ( ) => {
13971405 const accesses = getRelationships ( result , 'ACCESSES' ) ;
13981406 const writes = accesses . filter ( e => e . rel . reason === 'write' ) ;
1399- expect ( writes . length ) . toBeGreaterThanOrEqual ( 2 ) ;
1407+ expect ( writes . length ) . toBe ( 3 ) ;
14001408 const fieldNames = writes . map ( e => e . target ) ;
14011409 expect ( fieldNames ) . toContain ( 'name' ) ;
14021410 expect ( fieldNames ) . toContain ( 'address' ) ;
1411+ expect ( fieldNames ) . toContain ( 'score' ) ;
14031412 const sources = writes . map ( e => e . source ) ;
14041413 expect ( sources ) . toContain ( 'update_user' ) ;
14051414 } ) ;
0 commit comments