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
@@ -74,7 +74,7 @@ export function GetMockFactoryCallForThis(mockKey: string): ts.Expression {
7474 ) ;
7575}
7676
77- function getDeclarationMockFactoryCall ( declaration : ts . Declaration , typeReferenceNode : ts . TypeReferenceNode , scope : Scope ) : ts . Expression {
77+ function getDeclarationMockFactoryCall ( declaration : ts . Declaration , typeReferenceNode : ts . TypeReferenceNode , scope : Scope ) : ts . CallExpression {
7878 const declarationKey : string | undefined = MockDefiner . instance . getDeclarationKeyMap ( declaration ) ;
7979
8080 if ( ! declarationKey ) {
You can’t perform that action at this time.
0 commit comments