import { FontSize } from './font-size' ; describe ( 'FontSize' , ( ) => { describe ( 'constructor' , ( ) => { it ( 'should have normal size' , ( ) => { const fontSize = new FontSize ( 14 ) ; expect ( fontSize . normalSize ) . toEqual ( 14 ) ; } ) ; it ( 'should have larger size' , ( ) => { const fontSize = new FontSize ( 14 ) ; expect ( fontSize . largeSize ) . toEqual ( 14 * 1.42 ) ; } ) ; it ( 'should have largest size' , ( ) => { const fontSize = new FontSize ( 14 ) ; expect ( fontSize . largerSize ) . toEqual ( 14 * 1.72 ) ; } ) ; } ) ; } ) ;