diff --git a/src/components/DataFetcher/DataFetcher.test.js b/src/components/DataFetcher/DataFetcher.test.js index 328bd07ac..df199ad92 100644 --- a/src/components/DataFetcher/DataFetcher.test.js +++ b/src/components/DataFetcher/DataFetcher.test.js @@ -107,19 +107,19 @@ describe('DataFetcher component', () => { }); describe('getJobSplittingURL', () => { - const trueResources = { splitStatus: { isPending: false, records: [{ splitStatus: true }] } }; - const falseResources = { splitStatus: { isPending: false, records: [{ splitStatus: false }] } }; - const pendingResources = { splitStatus: { isPending: true, records: [] } }; + const trueResources = { split_status: { isPending: false, records: [{ splitStatus: true }] } }; + const falseResources = { split_status: { isPending: false, records: [{ splitStatus: false }] } }; + const pendingResources = { split_status: { isPending: true, records: [] } }; it('given a splitStatus of true, it provides the "trueUrl" parameter', () => { - expect(getJobSplittingURL({ resources: trueResources }, 'trueUrl', 'falseUrl')).toBe('trueUrl'); + expect(getJobSplittingURL(trueResources, 'trueUrl', 'falseUrl')).toBe('trueUrl'); }); it('given a splitStatus of true, it provides the "falseUrl" parameter', () => { - expect(getJobSplittingURL({ resources: falseResources }, 'trueUrl', 'falseUrl')).toBe('falseUrl'); + expect(getJobSplittingURL(falseResources, 'trueUrl', 'falseUrl')).toBe('falseUrl'); }); it('given a pending split status, it returns undefined', () => { - expect(getJobSplittingURL({ resources: pendingResources }, 'trueUrl', 'falseUrl')).toBeUndefined(); + expect(getJobSplittingURL(pendingResources, 'trueUrl', 'falseUrl')).toBeUndefined(); }); }); });