From 2684af915870681d5e4a318a87b305b2e35a1533 Mon Sep 17 00:00:00 2001 From: Alexey Antonov Date: Fri, 27 Aug 2021 13:50:49 +0300 Subject: [PATCH] fix tests --- .../server/usage_collector/get_usage_collector.test.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/plugins/visualizations/server/usage_collector/get_usage_collector.test.ts b/src/plugins/visualizations/server/usage_collector/get_usage_collector.test.ts index 39e181e81daca..24c290ca849ed 100644 --- a/src/plugins/visualizations/server/usage_collector/get_usage_collector.test.ts +++ b/src/plugins/visualizations/server/usage_collector/get_usage_collector.test.ts @@ -22,32 +22,38 @@ const enlargedMockSavedObjects = [ // default space { id: 'visualization:coolviz-123', + namespaces: ['default'], attributes: { visState: '{"type": "cave_painting"}' }, updated_at: moment().subtract(7, 'days').startOf('day').toString(), }, { id: 'visualization:coolviz-456', + namespaces: ['default'], attributes: { visState: '{"type": "printing_press"}' }, updated_at: moment().subtract(20, 'days').startOf('day').toString(), }, { id: 'meat:visualization:coolviz-789', + namespaces: ['default'], attributes: { visState: '{"type": "floppy_disk"}' }, updated_at: moment().subtract(2, 'months').startOf('day').toString(), }, // meat space { id: 'meat:visualization:coolviz-789', + namespaces: ['meat'], attributes: { visState: '{"type": "cave_painting"}' }, updated_at: moment().subtract(89, 'days').startOf('day').toString(), }, { id: 'meat:visualization:coolviz-789', + namespaces: ['meat'], attributes: { visState: '{"type": "cuneiform"}' }, updated_at: moment().subtract(5, 'months').startOf('day').toString(), }, { id: 'meat:visualization:coolviz-789', + namespaces: ['meat'], attributes: { visState: '{"type": "cuneiform"}' }, updated_at: moment().subtract(2, 'days').startOf('day').toString(), }, @@ -59,16 +65,19 @@ const enlargedMockSavedObjects = [ // cyber space { id: 'cyber:visualization:coolviz-789', + namespaces: ['cyber'], attributes: { visState: '{"type": "floppy_disk"}' }, updated_at: moment().subtract(7, 'months').startOf('day').toString(), }, { id: 'cyber:visualization:coolviz-789', + namespaces: ['cyber'], attributes: { visState: '{"type": "floppy_disk"}' }, updated_at: moment().subtract(3, 'days').startOf('day').toString(), }, { id: 'cyber:visualization:coolviz-123', + namespaces: ['cyber'], attributes: { visState: '{"type": "cave_painting"}' }, updated_at: moment().subtract(15, 'days').startOf('day').toString(), },