Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: update jest tests
Browse files Browse the repository at this point in the history
ismay committed Mar 5, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 5596c30 commit 471c996
Showing 4 changed files with 13 additions and 7 deletions.
10 changes: 5 additions & 5 deletions i18n/en.pot
Original file line number Diff line number Diff line change
@@ -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"

2 changes: 1 addition & 1 deletion src/components/Forms/QueueAddForm.test.js
Original file line number Diff line number Diff line change
@@ -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', () => () => (
<div data-test="sequence-order-field">QueueOrderField</div>
))

2 changes: 1 addition & 1 deletion src/components/Forms/QueueEditForm.test.js
Original file line number Diff line number Diff line change
@@ -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', () => () => (
<div data-test="sequence-order-field">QueueOrderField</div>
))

6 changes: 6 additions & 0 deletions src/hooks/parameter-options/use-parameter-options.test.js
Original file line number Diff line number Diff line change
@@ -14,6 +14,8 @@ describe('useParameterOptions', () => {
predictors: { predictors: 'predictors' },
predictorGroups: { predictorGroups: 'predictorGroups' },
dataIntegrity: 'dataIntegrityChecks',
dashboards: { dashboards: 'dashboard' },
userGroups: { userGroups: 'receivers' },
}
const wrapper = ({ children }) => (
<CustomDataProvider data={data}>{children}</CustomDataProvider>
@@ -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 }) => (
<CustomDataProvider data={data}>{children}</CustomDataProvider>

0 comments on commit 471c996

Please sign in to comment.