From 471c996459948268cd6bcb2b42c56b4fbe3d4d4e Mon Sep 17 00:00:00 2001 From: ismay Date: Tue, 5 Mar 2024 16:06:38 +0100 Subject: [PATCH] test: update jest tests --- i18n/en.pot | 10 +++++----- src/components/Forms/QueueAddForm.test.js | 2 +- src/components/Forms/QueueEditForm.test.js | 2 +- .../parameter-options/use-parameter-options.test.js | 6 ++++++ 4 files changed, 13 insertions(+), 7 deletions(-) diff --git a/i18n/en.pot b/i18n/en.pot index 0e0cf1940..79ca7fa53 100644 --- a/i18n/en.pot +++ b/i18n/en.pot @@ -5,8 +5,8 @@ msgstr "" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1)\n" -"POT-Creation-Date: 2024-02-29T16:49:15.985Z\n" -"PO-Revision-Date: 2024-02-29T16:49:15.985Z\n" +"POT-Creation-Date: 2024-03-05T14:54:55.437Z\n" +"PO-Revision-Date: 2024-03-05T14:54:55.437Z\n" msgid "Something went wrong" msgstr "Something went wrong" @@ -72,15 +72,15 @@ msgstr "Select checks to run." msgid "Report type" msgstr "Report type" +msgid "No options available" +msgstr "No options available" + msgid "Loading options" msgstr "Loading options" msgid "Something went wrong whilst loading options" msgstr "Something went wrong whilst loading options" -msgid "No options available" -msgstr "No options available" - msgid "Delay" msgstr "Delay" diff --git a/src/components/Forms/QueueAddForm.test.js b/src/components/Forms/QueueAddForm.test.js index 46197d0bc..e3b62c91c 100644 --- a/src/components/Forms/QueueAddForm.test.js +++ b/src/components/Forms/QueueAddForm.test.js @@ -6,7 +6,7 @@ import QueueAddForm from './QueueAddForm' const { Form } = ReactFinalForm // Mock components that make network requests -jest.mock('../FormFields/QueueOrderField/QueueOrderField', () => () => ( +jest.mock('../FormFields/QueueOrderField', () => () => (
QueueOrderField
)) diff --git a/src/components/Forms/QueueEditForm.test.js b/src/components/Forms/QueueEditForm.test.js index 501c2155f..a8eb55af0 100644 --- a/src/components/Forms/QueueEditForm.test.js +++ b/src/components/Forms/QueueEditForm.test.js @@ -6,7 +6,7 @@ import QueueEditForm from './QueueEditForm' const { Form } = ReactFinalForm // Mock components that make network requests -jest.mock('../FormFields/QueueOrderField/QueueOrderField', () => () => ( +jest.mock('../FormFields/QueueOrderField', () => () => (
QueueOrderField
)) diff --git a/src/hooks/parameter-options/use-parameter-options.test.js b/src/hooks/parameter-options/use-parameter-options.test.js index 32e263592..d9d5ee5c5 100644 --- a/src/hooks/parameter-options/use-parameter-options.test.js +++ b/src/hooks/parameter-options/use-parameter-options.test.js @@ -14,6 +14,8 @@ describe('useParameterOptions', () => { predictors: { predictors: 'predictors' }, predictorGroups: { predictorGroups: 'predictorGroups' }, dataIntegrity: 'dataIntegrityChecks', + dashboards: { dashboards: 'dashboard' }, + userGroups: { userGroups: 'receivers' }, } const wrapper = ({ children }) => ( {children} @@ -34,6 +36,8 @@ describe('useParameterOptions', () => { predictors: 'predictors', predictorGroups: 'predictorGroups', dataIntegrityChecks: 'dataIntegrityChecks', + dashboard: 'dashboard', + receivers: 'receivers', }, }) }) @@ -47,6 +51,8 @@ describe('useParameterOptions', () => { predictors: { predictors: 'predictors' }, predictorGroups: { predictorGroups: 'predictorGroups' }, dataIntegrity: 'dataIntegrityChecks', + dashboards: { dashboards: 'dashboard' }, + userGroups: { userGroups: 'receivers' }, } const wrapper = ({ children }) => ( {children}