File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/transformer/mockFactoryCall Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ import { MockIdentifierGenericParameter } from '../mockIdentifier/mockIdentifier
1111import { Scope } from '../scope/scope' ;
1212import { TypescriptCreator } from '../helper/creator' ;
1313
14- export function GetMockFactoryCall ( typeReferenceNode : ts . TypeReferenceNode , scope : Scope ) : ts . Expression {
14+ export function GetMockFactoryCall ( typeReferenceNode : ts . TypeReferenceNode , scope : Scope ) : ts . CallExpression {
1515 const declaration : ts . Declaration = TypescriptHelper . GetDeclarationFromNode ( typeReferenceNode . typeName ) ;
1616
1717 return getDeclarationMockFactoryCall ( declaration , typeReferenceNode , scope ) ;
1818}
1919
20- export function CreateMockFactory ( typeReferenceNode : ts . TypeReferenceNode , scope : Scope ) : ts . Expression {
20+ export function CreateMockFactory ( typeReferenceNode : ts . TypeReferenceNode , scope : Scope ) : ts . CallExpression {
2121 const declaration : ts . Declaration = TypescriptHelper . GetDeclarationFromNode ( typeReferenceNode . typeName ) ;
2222 MockDefiner . instance . createMockFactory ( declaration ) ;
2323
@@ -68,7 +68,7 @@ export function GetMockFactoryCallForThis(mockKey: string): ts.Expression {
6868 ) ;
6969}
7070
71- function getDeclarationMockFactoryCall ( declaration : ts . Declaration , typeReferenceNode : ts . TypeReferenceNode , scope : Scope ) : ts . Expression {
71+ function getDeclarationMockFactoryCall ( declaration : ts . Declaration , typeReferenceNode : ts . TypeReferenceNode , scope : Scope ) : ts . CallExpression {
7272 const declarationKey : string | undefined = MockDefiner . instance . getDeclarationKeyMap ( declaration ) ;
7373
7474 if ( ! declarationKey ) {
You can’t perform that action at this time.
0 commit comments