From 77b5598ab75cd29b2c8c559ac24a14a0738db86f Mon Sep 17 00:00:00 2001 From: dej611 Date: Wed, 7 Sep 2022 18:40:28 +0200 Subject: [PATCH] :white_check_mark: Fix tests after ishidden removal --- .../public/event_annotation_service/service.test.ts | 7 ------- .../__snapshots__/fetch_event_annotations.test.ts.snap | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/plugins/event_annotation/public/event_annotation_service/service.test.ts b/src/plugins/event_annotation/public/event_annotation_service/service.test.ts index 64bbf050a6dd1e..0fea0e7c38ea76 100644 --- a/src/plugins/event_annotation/public/event_annotation_service/service.test.ts +++ b/src/plugins/event_annotation/public/event_annotation_service/service.test.ts @@ -86,7 +86,6 @@ describe('Event Annotation Service', () => { lineStyle: ['solid'], icon: ['triangle'], textVisibility: [false], - isHidden: [false], }, }, ], @@ -121,7 +120,6 @@ describe('Event Annotation Service', () => { label: ['Hello'], color: ['#F04E981A'], outside: [false], - isHidden: [false], }, }, ], @@ -159,7 +157,6 @@ describe('Event Annotation Service', () => { icon: ['triangle'], textVisibility: [false], textField: [], - isHidden: [false], filter: [ { chain: [ @@ -230,7 +227,6 @@ describe('Event Annotation Service', () => { lineStyle: ['solid'], icon: ['triangle'], textVisibility: [false], - isHidden: [false], }, }, ], @@ -248,7 +244,6 @@ describe('Event Annotation Service', () => { label: ['Hello Range'], color: ['#F04E981A'], outside: [false], - isHidden: [false], }, }, ], @@ -269,7 +264,6 @@ describe('Event Annotation Service', () => { icon: ['triangle'], textVisibility: [false], textField: [], - isHidden: [false], filter: [ { chain: [ @@ -332,7 +326,6 @@ describe('Event Annotation Service', () => { icon: ['triangle'], textVisibility: [textVisibility], textField: expected ? [expected] : [], - isHidden: [false], filter: [ { chain: [ diff --git a/src/plugins/event_annotation/public/fetch_event_annotations/__snapshots__/fetch_event_annotations.test.ts.snap b/src/plugins/event_annotation/public/fetch_event_annotations/__snapshots__/fetch_event_annotations.test.ts.snap index daefa3f4af7cea..25729bfd5b80e0 100644 --- a/src/plugins/event_annotation/public/fetch_event_annotations/__snapshots__/fetch_event_annotations.test.ts.snap +++ b/src/plugins/event_annotation/public/fetch_event_annotations/__snapshots__/fetch_event_annotations.test.ts.snap @@ -37,6 +37,13 @@ Array [ "timebucket": "2022-07-05T04:30:00.000Z", "type": "point", }, + Object { + "id": "mann5", + "isHidden": true, + "time": "2022-07-05T05:55:00Z", + "timebucket": "2022-07-05T05:30:00.000Z", + "type": "point", + }, Object { "id": "mann1", "time": "2022-07-05T11:12:00Z",