Skip to content

Commit

Permalink
test(modelmanager): check that function does not throw
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Roberts <[email protected]>
  • Loading branch information
mttrbrts committed Aug 11, 2023
1 parent d8350b6 commit a5faba2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/concerto-core/test/modelmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,9 @@ describe('ModelManager', () => {
undeclared: []
};
// Displays console warning
basemodelmanager.addModel(ast, undefined, 'origFile');
(() => {
basemodelmanager.addModel(ast, undefined, 'origFile');
}).should.not.throw();
});

it('should throw when using an unknown metamodel version', () => {
Expand Down

0 comments on commit a5faba2

Please sign in to comment.