-
-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: sanketshevkar <[email protected]>
- Loading branch information
1 parent
cc54de1
commit bd19b0e
Showing
1 changed file
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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(); | ||
}); | ||
}); | ||
}); |