import assert from 'assert' ; import isThursday from '.' ; describe ( 'isThursday' , ( ) => { it ( 'returns true if the given date is Thursday' , ( ) => { const result = isThursday ( new Date ( 2014 , 8 , 25 ) ) ; assert ( result === true ) ; } ) ; it ( 'returns false if the given date is not Thursday' , ( ) => { const result = isThursday ( new Date ( 2014 , 8 , 24 ) ) ; assert ( result === false ) ; } ) ; it ( 'accepts a timestamp' , ( ) => { const result = isThursday ( new Date ( 2014 , 1 , 13 ) . getTime ( ) ) ; assert ( result === true ) ; } ) ; it ( 'returns false if the given date is `Invalid Date`' , ( ) => { const result = isThursday ( new Date ( NaN ) ) ; assert ( result === false ) ; } ) ; it ( 'throws TypeError exception if passed less than 1 argument' , ( ) => { assert . throws ( isThursday . bind ( null ) , TypeError ) ; } ) ; } ) ;