From 4a2989b970a5e244b9c57aff03e0c37f57fd632d Mon Sep 17 00:00:00 2001 From: Steffen Waterkamp Date: Mon, 9 Mar 2020 16:38:11 +0100 Subject: [PATCH] Update tests --- gsa/src/web/pages/reports/__mocks__/mockdeltareport.js | 3 +++ gsa/src/web/pages/reports/__mocks__/mockreport.js | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gsa/src/web/pages/reports/__mocks__/mockdeltareport.js b/gsa/src/web/pages/reports/__mocks__/mockdeltareport.js index 86ce67ce4c..601b8e974f 100644 --- a/gsa/src/web/pages/reports/__mocks__/mockdeltareport.js +++ b/gsa/src/web/pages/reports/__mocks__/mockdeltareport.js @@ -20,6 +20,8 @@ import {setLocale} from 'gmp/locale/lang'; import Report from 'gmp/models/report'; +import {host1, host2} from './mockreport'; + setLocale('en'); // Task @@ -100,6 +102,7 @@ export const getMockDeltaReport = () => { result_count: {__text: 2, full: 2, filtered: 2}, results: {result: [result1, result2]}, hosts: {count: 2}, + host: [host1, host2], }; const entity = Report.fromElement({ diff --git a/gsa/src/web/pages/reports/__mocks__/mockreport.js b/gsa/src/web/pages/reports/__mocks__/mockreport.js index 22fbc75cea..34ec1e245f 100644 --- a/gsa/src/web/pages/reports/__mocks__/mockreport.js +++ b/gsa/src/web/pages/reports/__mocks__/mockreport.js @@ -109,7 +109,7 @@ const result3 = { }; // Hosts -const host1 = { +export const host1 = { ip: '123.456.78.910', asset: {_asset_id: '123'}, start: '2019-06-03T11:00:22Z', @@ -153,7 +153,7 @@ const host1 = { ], }; -const host2 = { +export const host2 = { ip: '109.876.54.321', start: '2019-06-03T11:15:14Z', end: '2019-06-03T11:31:23Z',