import { createMock } from 'ts-auto-mock' ; describe ( 'interface without properties and with methods' , ( ) => { it ( 'should assign the first method' , ( ) => { interface A { ( ) : string ; } interface B { ( ) : number ; } interface C { prop : A & B ; } const mock = createMock < C > ( ) ; expect ( mock . prop ( ) ) . toBe ( '' ) ; } ) ; } ) ;