import { getClassMethodCaller , getDateTime , slugLibName , } from './logger-helpers.utils' ; describe ( 'getDateTime()' , ( ) => { it ( 'should returns the current date as a string' , ( ) => { const result = getDateTime ( ) ; expect ( typeof result ) . toBe ( 'string' ) ; } ) ; } ) ; describe ( 'getClassMethodCaller()' , ( ) => { it ( 'should returns the current class-method caller in string' , ( ) => { const result = getClassMethodCaller ( ) ; expect ( typeof result ) . toBe ( 'string' ) ; } ) ; } ) ; describe ( 'slugLibName()' , ( ) => { it ( 'should convert a `camelCase` to `snakeCase` string without the last uppercase element' , ( ) => { const camelCaseMock = 'LibNameValueValue' ; const snakeCaseMock = 'lib-name-value' ; const result = slugLibName ( camelCaseMock ) ; expect ( result ) . toStrictEqual ( snakeCaseMock ) ; expect ( typeof result ) . toBe ( 'string' ) ; } ) ; } ) ;