Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykkopycinski committed Sep 18, 2020
1 parent 420ac24 commit 79366d1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 156 deletions.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,26 @@
*/

import { hostsFactory } from '.';
import { HostsQueries } from '../../../../../common/search_strategy';
import { HostsQueries, HostsKpiQueries } from '../../../../../common/search_strategy';
import { allHosts } from './all';
import { hostDetails } from './details';
import { hostOverview } from './overview';
import { firstLastSeenHost } from './last_first_seen';
import { uncommonProcesses } from './uncommon_processes';
import { authentications } from './authentications';
import { hostsKpiAuthentications } from './kpi/authentications';
import { hostsKpiHosts } from './kpi/hosts';
import { hostsKpiUniqueIps } from './kpi/unique_ips';

jest.mock('./all');
jest.mock('./details');
jest.mock('./overview');
jest.mock('./last_first_seen');
jest.mock('./uncommon_processes');
jest.mock('./authentications');
jest.mock('./kpi/authentications');
jest.mock('./kpi/hosts');
jest.mock('./kpi/unique_ips');

describe('hostsFactory', () => {
test('should include correct apis', () => {
Expand All @@ -29,6 +35,9 @@ describe('hostsFactory', () => {
[HostsQueries.firstLastSeen]: firstLastSeenHost,
[HostsQueries.uncommonProcesses]: uncommonProcesses,
[HostsQueries.authentications]: authentications,
[HostsKpiQueries.kpiAuthentications]: hostsKpiAuthentications,
[HostsKpiQueries.kpiHosts]: hostsKpiHosts,
[HostsKpiQueries.kpiUniqueIps]: hostsKpiUniqueIps,
};
expect(hostsFactory).toEqual(expectedHostsFactory);
});
Expand Down

0 comments on commit 79366d1

Please sign in to comment.