Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
MonireRasouli committed Jan 15, 2025
1 parent fd5c555 commit c4d0eec
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions lib/DocumentFilter/DocumentFilterArray.test.js
Original file line number Diff line number Diff line change
@@ -1,56 +1,56 @@
import { MemoryRouter } from 'react-router-dom';
import { screen } from'@testing-library/react';
import { waitFor } from '@folio/jest-config-stripes/testing-library/react';
import { renderWithIntl, Button, TestForm, Dropdown} from '@folio/stripes-erm-testing';
import { renderWithIntl, Button, TestForm, Dropdown } from '@folio/stripes-erm-testing';

import { translationsProperties } from '../../test/jest/helpers';

import DocumentFilterArray from './DocumentFilterArray';

const handleSubmit = jest.fn();
const translatedContentOptions = [
{
"value": "alternateNames",
"label": "Alternative names"
'value': 'alternateNames',
'label': 'Alternative names'
},
{
"value": "agreementContentTypes",
"label": "Content types"
'value': 'agreementContentTypes',
'label': 'Content types'
},
{
"value": "contacts",
"label": "Internal contacts"
'value': 'contacts',
'label': 'Internal contacts'
},
{
"value": "orgs",
"label": "Organizations"
'value': 'orgs',
'label': 'Organizations'
},
{
"value": "items",
"label": "Agreement lines"
'value': 'items',
'label': 'Agreement lines'
},
{
"value": "linkedLicenses",
"label": "Linked licenses"
'value': 'linkedLicenses',
'label': 'Linked licenses'
},
{
"value": "externalLicenseDocs",
"label": "External licenses"
'value': 'externalLicenseDocs',
'label': 'External licenses'
},
{
"value": "supplementaryDocs",
"label": "Supplementary documents"
'value': 'supplementaryDocs',
'label': 'Supplementary documents'
},
{
"value": "usageDataProviders",
"label": "Usage data"
'value': 'usageDataProviders',
'label': 'Usage data'
},
{
"value": "relatedAgreements",
"label": "Related agreements"
'value': 'relatedAgreements',
'label': 'Related agreements'
},
{
"value": "tags",
"label": "Tags"
'value': 'tags',
'label': 'Tags'
}
];
const onSubmit = jest.fn();
Expand All @@ -63,9 +63,9 @@ describe('DocumentFilterArray', () => {
<MemoryRouter>
<TestForm onSubmit={onSubmit}>
<DocumentFilterArray
translatedContentOptions={translatedContentOptions}
name={"agreementContent"}
handleSubmit={handleSubmit}
name="agreementContent"
translatedContentOptions={translatedContentOptions}
/>
</TestForm>,
</MemoryRouter>,
Expand Down

0 comments on commit c4d0eec

Please sign in to comment.