import mockAnnotations from '../annotations_table/__mocks__/mock_annotations.json' ; import moment from 'moment-timezone' ; import React from 'react' ; import { shallowWithIntl } from '@kbn/test/jest' ; import { AnnotationDescriptionList } from './index' ; describe ( 'AnnotationDescriptionList' , ( ) => { beforeEach ( ( ) => { moment . tz . setDefault ( 'UTC' ) ; } ) ; afterEach ( ( ) => { moment . tz . setDefault ( 'Browser' ) ; } ) ; test ( 'Initialization with annotation.' , ( ) => { const wrapper = shallowWithIntl ( < AnnotationDescriptionList annotation = { mockAnnotations [ 0 ] } / > ) ; expect ( wrapper ) . toMatchSnapshot ( ) ; } ) ; } ) ;