From faa88d39a56c72aa1680e4fa9f35b4bb85eb2cd6 Mon Sep 17 00:00:00 2001 From: John Coburn Date: Wed, 20 Sep 2023 14:03:21 -0500 Subject: [PATCH] update DataFetcher tests --- src/components/DataFetcher/DataFetcher.test.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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(); }); }); });