import { EVENTS } from '../constants/events' ; import { ACTIONS } from '../constants/actions' ; test ( 'exports actions and events' , ( ) => { const isString = ( s ) => typeof s === 'string' ; expect ( Object . values ( EVENTS . DOM ) . every ( isString ) ) . toBe ( true ) ; expect ( Object . values ( EVENTS . PLAYER ) . every ( isString ) ) . toBe ( true ) ; expect ( Object . values ( ACTIONS . PLAYER ) . every ( isString ) ) . toBe ( true ) ; expect ( [ EVENTS . PLAY , ACTIONS . PLAY ] . every ( isString ) ) . toBe ( true ) ; expect ( EVENTS . PLAY ) . not . toBe ( ACTIONS . PLAY ) ; } ) ;