Skip to content

Commit

Permalink
test(metamodel) Add roundtrip test for metamodel itself
Browse files Browse the repository at this point in the history
Signed-off-by: jeromesimeon <[email protected]>
  • Loading branch information
jeromesimeon committed Aug 7, 2021
1 parent 773efaf commit 2c068f2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/concerto-core/test/introspect/metamodel.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,15 @@ describe('MetaModel', () => {
mm2.should.deep.equal(personMetaModel);
});
});

describe('#meta-metamodel', () => {
it('should roundtrip the metamodel', () => {
const metaModel = MetaModel.metaModelCto;
const mm1 = MetaModel.ctoToMetaModel(metaModel, false);
const metaModel2 = MetaModel.ctoFromMetaModel(mm1);
const mm2 = MetaModel.ctoToMetaModel(metaModel2, false);
mm2.should.deep.equal(mm1);
});

});
});

0 comments on commit 2c068f2

Please sign in to comment.