Skip to content

Commit

Permalink
chore(*): update test
Browse files Browse the repository at this point in the history
Signed-off-by: muhammed-abdulkadir <[email protected]>
  • Loading branch information
muhammed-abdulkadir committed Dec 3, 2024
1 parent 6d02b65 commit 1a1b353
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 97 deletions.
3 changes: 1 addition & 2 deletions lib/metamodelutil.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function createNameTable(priorModels, metaModel) {
'Concept': {namespace: concertoNs, name: 'Concept'},
'Asset': {namespace: concertoNs, name: 'Asset'},
'Participant': {namespace: concertoNs, name: 'Participant'},
'Transaction ': {namespace: concertoNs, name: 'Transaction'},
'Transaction': {namespace: concertoNs, name: 'Transaction'},
'Event': {namespace: concertoNs, name: 'Event'}
};

Expand Down Expand Up @@ -150,7 +150,6 @@ function resolveTypeNames(metaModel, table) {
}
(metaModel.properties || []).forEach((property) => {
resolveTypeNames(property, table);
metaModel.property.name = table[property.name].name;
});
}
break;
Expand Down
49 changes: 2 additions & 47 deletions test/cto/aliasedImport.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,39 +16,9 @@
"$class": "[email protected]",
"name": "name",
"isArray": false,
"isOptional": false,
"location": {
"$class": "[email protected]",
"start": {
"offset": 35,
"line": 4,
"column": 2,
"$class": "[email protected]"
},
"end": {
"offset": 49,
"line": 5,
"column": 1,
"$class": "[email protected]"
}
}
"isOptional": false
}
],
"location": {
"$class": "[email protected]",
"start": {
"offset": 22,
"line": 3,
"column": 1,
"$class": "[email protected]"
},
"end": {
"offset": 50,
"line": 5,
"column": 2,
"$class": "[email protected]"
}
}
]
}
]
},
Expand Down Expand Up @@ -78,21 +48,6 @@
"name": "file",
"isAbstract": false,
"properties": [],
"location": {
"$class": "[email protected]",
"start": {
"offset": 50,
"line": 5,
"column": 1,
"$class": "[email protected]"
},
"end": {
"offset": 75,
"line": 6,
"column": 2,
"$class": "[email protected]"
}
},
"superType": {
"$class": "[email protected]",
"name": "d"
Expand Down
51 changes: 3 additions & 48 deletions test/cto/aliasedImportResolved.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,39 +16,9 @@
"$class": "[email protected]",
"name": "name",
"isArray": false,
"isOptional": false,
"location": {
"$class": "[email protected]",
"start": {
"offset": 35,
"line": 4,
"column": 2,
"$class": "[email protected]"
},
"end": {
"offset": 49,
"line": 5,
"column": 1,
"$class": "[email protected]"
}
}
"isOptional": false
}
],
"location": {
"$class": "[email protected]",
"start": {
"offset": 22,
"line": 3,
"column": 1,
"$class": "[email protected]"
},
"end": {
"offset": 50,
"line": 5,
"column": 2,
"$class": "[email protected]"
}
}
]
}
]
},
Expand Down Expand Up @@ -78,24 +48,9 @@
"name": "file",
"isAbstract": false,
"properties": [],
"location": {
"$class": "[email protected]",
"start": {
"offset": 50,
"line": 5,
"column": 1,
"$class": "[email protected]"
},
"end": {
"offset": 75,
"line": 6,
"column": 2,
"$class": "[email protected]"
}
},
"superType": {
"$class": "[email protected]",
"name": "d",
"name": "doc",
"namespace": "org.saluja"
}
}
Expand Down

0 comments on commit 1a1b353

Please sign in to comment.