import { createMock } from 'ts-auto-mock' ; import { ClassThatUseDifferentCreateMock } from './utilities/class' ; describe ( 'create-mock' , ( ) => { describe ( 'when there is another function called createMock' , ( ) => { it ( 'should not be affected by createMock' , ( ) => { const h = new ClassThatUseDifferentCreateMock ( ) ; expect ( h . propertyGenerated ) . toBe ( 'property' ) ; const properties = createMock < ClassThatUseDifferentCreateMock > ( ) ; expect ( properties . property ) . toBe ( '' ) ; } ) ; } ) ; } ) ;