import { Author } from './Author' ; describe ( 'Author' , ( ) => { let author ; beforeEach ( ( ) => { author = new Author ( 'name' , 10 , 'blue' ) ; } ) ; it ( 'Should initialize the service' , ( ) => { expect ( author ) . toBeTruthy ( ) ; } ) ; it ( 'Get name' , ( ) => { expect ( author . getName ( ) === 'name' ) . toBeTruthy ( ) ; } ) ; it ( 'Get color' , ( ) => { expect ( author . getColor ( ) === 'blue' ) . toBeTruthy ( ) ; } ) ; it ( 'Get name' , ( ) => { expect ( author . getId ( ) === 10 ) . toBeTruthy ( ) ; } ) ; } ) ;