From 46b4c48c8fe0c0fc8470b0b2c64f1ee41c8fbadb Mon Sep 17 00:00:00 2001 From: Jonathan Buttner Date: Fri, 12 Jun 2020 15:07:36 -0400 Subject: [PATCH] Fixing test --- .../public/resolver/store/data/graphing.test.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/x-pack/plugins/security_solution/public/resolver/store/data/graphing.test.ts b/x-pack/plugins/security_solution/public/resolver/store/data/graphing.test.ts index 69edf3b4c134d..d120adb72cd81 100644 --- a/x-pack/plugins/security_solution/public/resolver/store/data/graphing.test.ts +++ b/x-pack/plugins/security_solution/public/resolver/store/data/graphing.test.ts @@ -113,8 +113,8 @@ describe('resolver graph layout', () => { }); describe('when rendering no nodes', () => { beforeEach(() => { - const payload: ResolverEvent[] = []; - const action: DataAction = { type: 'serverReturnedResolverData', payload }; + const events: ResolverEvent[] = []; + const action: DataAction = { type: 'serverReturnedResolverData', events, stats: new Map() }; store.dispatch(action); }); it('the graphableProcesses list should only include nothing', () => { @@ -127,8 +127,8 @@ describe('resolver graph layout', () => { }); describe('when rendering one node', () => { beforeEach(() => { - const payload = [processA]; - const action: DataAction = { type: 'serverReturnedResolverData', payload }; + const events = [processA]; + const action: DataAction = { type: 'serverReturnedResolverData', events, stats: new Map() }; store.dispatch(action); }); it('the graphableProcesses list should only include nothing', () => { @@ -141,8 +141,8 @@ describe('resolver graph layout', () => { }); describe('when rendering two nodes, one being the parent of the other', () => { beforeEach(() => { - const payload = [processA, processB]; - const action: DataAction = { type: 'serverReturnedResolverData', payload }; + const events = [processA, processB]; + const action: DataAction = { type: 'serverReturnedResolverData', events, stats: new Map() }; store.dispatch(action); }); it('the graphableProcesses list should only include nothing', () => { @@ -155,7 +155,7 @@ describe('resolver graph layout', () => { }); describe('when rendering two forks, and one fork has an extra long tine', () => { beforeEach(() => { - const payload = [ + const events = [ processA, processB, processC, @@ -166,7 +166,7 @@ describe('resolver graph layout', () => { processH, processI, ]; - const action: DataAction = { type: 'serverReturnedResolverData', payload }; + const action: DataAction = { type: 'serverReturnedResolverData', events, stats: new Map() }; store.dispatch(action); }); it("the graphableProcesses list should only include events with 'processCreated' an 'processRan' eventType", () => {