Skip to content

Commit a7dceda

Browse files
FIx test that didn’t pass eslint
1 parent c02a69a commit a7dceda

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

x-pack/plugins/enterprise_search/public/applications/shared/schema/schema_add_field_modal.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import { shallow, mount } from 'enzyme';
99

1010
import { NUMBER } from '../constants/field_types';
1111

12+
import { FIELD_NAME_CORRECTED_PREFIX } from './constants';
13+
1214
import { SchemaAddFieldModal } from './';
1315

1416
import { EuiFieldText, EuiModal, EuiSelect } from '@elastic/eui';
@@ -69,9 +71,7 @@ describe('SchemaAddFieldModal', () => {
6971

7072
expect(wrapper.find('[data-test-subj="SchemaAddFieldNameRow"]').prop('helpText')).toEqual(
7173
<React.Fragment>
72-
The field will be named
73-
{' '}
74-
<strong>foo_bar</strong>
74+
{FIELD_NAME_CORRECTED_PREFIX} <strong>foo_bar</strong>
7575
</React.Fragment>
7676
);
7777
});

0 commit comments

Comments
 (0)