import { createMock } from 'ts-auto-mock' ; import { ImportWithGenerics as ClassGenerics } from '../utils/classes/withGenerics' ; import { ImportWithGenerics } from '../utils/interfaces/withGenerics' ; import { ImportWithGenerics as TypeGenerics } from '../utils/types/withGenerics' ; describe ( 'for generic' , ( ) => { describe ( 'interfaces' , ( ) => { it ( 'should set all the default values with import interfaces' , ( ) => { const properties = createMock < ImportWithGenerics < string > > ( ) ; expect ( properties . a ) . toBe ( '' ) ; } ) ; } ) ; describe ( 'classes' , ( ) => { it ( 'should set all the default values with import classes' , ( ) => { const properties = createMock < ClassGenerics < string > > ( ) ; expect ( properties . a ) . toBe ( '' ) ; expect ( properties [ '_a' ] ) . toBeUndefined ( ) ; } ) ; } ) ; describe ( 'types' , ( ) => { it ( 'should set all the default values with import type' , ( ) => { const properties = createMock < TypeGenerics < string > > ( ) ; expect ( properties . a ) . toBe ( '' ) ; } ) ; } ) ; } ) ;