Skip to content

Commit

Permalink
fix(aliasing): new test
Browse files Browse the repository at this point in the history
Signed-off-by: sanketshevkar <[email protected]>
  • Loading branch information
sanketshevkar committed Jan 16, 2025
1 parent cc54de1 commit bd19b0e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/concerto-core/test/introspect/decorator.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,16 @@ describe('Decorator - Test for Decorator arguments using Import Aliasing', () =>

describe('#validate', () => {

it('should be able get validate a decorator whose argument is an imported type which is aliased', () => {
it('should be able get validate a decorator on a classDeclaration whose argument is an imported type which is aliased', () => {
const classDeclaration = resolvedModelManager.getType('[email protected]');
const decorator = classDeclaration.getDecorators()[0];
expect(decorator.validate.bind(decorator)).to.not.throw();
});

it('should be able get validate a decorator on a namespace whose argument is an imported type which is aliased', () => {
const classDeclaration = resolvedModelManager.getModelFile('[email protected]');
const decorator = classDeclaration.getDecorators()[0];
expect(decorator.validate.bind(decorator)).to.not.throw();
});
});
});

0 comments on commit bd19b0e

Please sign in to comment.