Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
swaterkamp committed Mar 9, 2020
1 parent 26f98a0 commit 4a2989b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions gsa/src/web/pages/reports/__mocks__/mockdeltareport.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import {setLocale} from 'gmp/locale/lang';

import Report from 'gmp/models/report';

import {host1, host2} from './mockreport';

setLocale('en');

// Task
Expand Down Expand Up @@ -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({
Expand Down
4 changes: 2 additions & 2 deletions gsa/src/web/pages/reports/__mocks__/mockreport.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 4a2989b

Please sign in to comment.