@@ -1368,7 +1368,6 @@ describe("Test validation of object references", () => {
13681368} ) ;
13691369
13701370describe ( "Test validation of object structure" , ( ) => {
1371- const metaInfoProvider = SepticMetaInfoProvider . getInstance ( ) ;
13721371 it ( "Expect no diagnostics for correct structure" , ( ) => {
13731372 const text = `
13741373 CalcModl: TestModl
@@ -1377,7 +1376,7 @@ describe("Test validation of object structure", () => {
13771376 "
13781377 ` ;
13791378 const cnfg = parseSepticForTest ( text ) ;
1380- cnfg . updateObjectParents ( metaInfoProvider . getObjectHierarchy ( ) ) ;
1379+ cnfg . updateObjectParents ( ) ;
13811380 const diag = validateObjectParent ( cnfg . objects [ 1 ] , cnfg . doc ) ;
13821381 expect ( diag . length ) . to . equal ( 0 ) ;
13831382 } ) ;
@@ -1390,7 +1389,7 @@ describe("Test validation of object structure", () => {
13901389 "
13911390 ` ;
13921391 const cnfg = parseSepticForTest ( text ) ;
1393- cnfg . updateObjectParents ( metaInfoProvider . getObjectHierarchy ( ) ) ;
1392+ cnfg . updateObjectParents ( ) ;
13941393 const diag = validateObjectParent ( cnfg . objects [ 0 ] , cnfg . doc ) ;
13951394 expect ( diag . length ) . to . equal ( 1 ) ;
13961395 expect ( diag [ 0 ] . code ) . to . equal ( DiagnosticCode . missingParentObject ) ;
@@ -1404,7 +1403,7 @@ describe("Test validation of object structure", () => {
14041403 "
14051404 ` ;
14061405 const cnfg = parseSepticForTest ( text ) ;
1407- cnfg . updateObjectParents ( metaInfoProvider . getObjectHierarchy ( ) ) ;
1406+ cnfg . updateObjectParents ( ) ;
14081407 const diag = validateObjectParent ( cnfg . objects [ 1 ] , cnfg . doc ) ;
14091408 expect ( diag . length ) . to . equal ( 1 ) ;
14101409 expect ( diag [ 0 ] . code ) . to . equal ( DiagnosticCode . missingParentObject ) ;
@@ -1420,7 +1419,7 @@ describe("Test validation of object structure", () => {
14201419 "
14211420 ` ;
14221421 const cnfg = parseSepticForTest ( text ) ;
1423- cnfg . updateObjectParents ( metaInfoProvider . getObjectHierarchy ( ) ) ;
1422+ cnfg . updateObjectParents ( ) ;
14241423 const diag = validateObjectParent ( cnfg . objects [ 2 ] , cnfg . doc ) ;
14251424 expect ( diag . length ) . to . equal ( 1 ) ;
14261425 expect ( diag [ 0 ] . code ) . to . equal ( DiagnosticCode . invalidParentObject ) ;
@@ -1436,7 +1435,7 @@ describe("Test validation of object structure", () => {
14361435 "
14371436 ` ;
14381437 const cnfg = parseSepticForTest ( text ) ;
1439- cnfg . updateObjectParents ( metaInfoProvider . getObjectHierarchy ( ) ) ;
1438+ cnfg . updateObjectParents ( ) ;
14401439 const diag = validateObjectParent ( cnfg . objects [ 2 ] , cnfg . doc ) ;
14411440 expect ( diag . length ) . to . equal ( 0 ) ;
14421441 } ) ;
@@ -1453,7 +1452,7 @@ describe("Test validation of object structure", () => {
14531452 "
14541453 ` ;
14551454 const cnfg = parseSepticForTest ( text ) ;
1456- cnfg . updateObjectParents ( metaInfoProvider . getObjectHierarchy ( ) ) ;
1455+ cnfg . updateObjectParents ( ) ;
14571456 const diag = validateObjectParent ( cnfg . objects [ 3 ] , cnfg . doc ) ;
14581457 expect ( diag . length ) . to . equal ( 0 ) ;
14591458 } ) ;
@@ -1464,7 +1463,7 @@ describe("Test validation of object structure", () => {
14641463 "
14651464 ` ;
14661465 const cnfg = parseSepticForTest ( text ) ;
1467- cnfg . updateObjectParents ( metaInfoProvider . getObjectHierarchy ( ) ) ;
1466+ cnfg . updateObjectParents ( ) ;
14681467 const diag = validateObjectParent ( cnfg . objects [ 0 ] , cnfg . doc ) ;
14691468 expect ( diag . length ) . to . equal ( 0 ) ;
14701469 } ) ;
0 commit comments