import { ANNOTATION_TYPE } from '../constants/annotations' ; import { isAnnotation , isAnnotations } from './annotations' ; describe ( 'Types: Annotations' , ( ) => { test ( 'Minimal integrity check.' , ( ) => { const annotation = { job_id : 'id' , annotation : 'Annotation text' , timestamp : 0 , type : ANNOTATION_TYPE . ANNOTATION , } ; expect ( isAnnotation ( annotation ) ) . toBe ( true ) ; expect ( isAnnotations ( [ annotation ] ) ) . toBe ( true ) ; } ) ; } ) ;