import { CommandCreatorError } from '../types' ; export function expectTimelineError ( errors , errorType ) { expect ( errors ) . toEqual ( expect . arrayContaining ( [ expect . objectContaining ( { type : errorType , } ) , ] ) ) ; }