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
11
11
import { Scope } from '../scope/scope' ;
12
12
import { TypescriptCreator } from '../helper/creator' ;
13
13
14
- export function GetMockFactoryCall ( typeReferenceNode : ts . TypeReferenceNode , scope : Scope ) : ts . Expression {
14
+ export function GetMockFactoryCall ( typeReferenceNode : ts . TypeReferenceNode , scope : Scope ) : ts . CallExpression {
15
15
const declaration : ts . Declaration = TypescriptHelper . GetDeclarationFromNode ( typeReferenceNode . typeName ) ;
16
16
17
17
return getDeclarationMockFactoryCall ( declaration , typeReferenceNode , scope ) ;
18
18
}
19
19
20
- export function CreateMockFactory ( typeReferenceNode : ts . TypeReferenceNode , scope : Scope ) : ts . Expression {
20
+ export function CreateMockFactory ( typeReferenceNode : ts . TypeReferenceNode , scope : Scope ) : ts . CallExpression {
21
21
const declaration : ts . Declaration = TypescriptHelper . GetDeclarationFromNode ( typeReferenceNode . typeName ) ;
22
22
MockDefiner . instance . createMockFactory ( declaration ) ;
23
23
@@ -68,7 +68,7 @@ export function GetMockFactoryCallForThis(mockKey: string): ts.Expression {
68
68
) ;
69
69
}
70
70
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 {
72
72
const declarationKey : string | undefined = MockDefiner . instance . getDeclarationKeyMap ( declaration ) ;
73
73
74
74
if ( ! declarationKey ) {
You can’t perform that action at this time.
0 commit comments