-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust styling for Finding details flyout opensearch-project#369
Signed-off-by: Jovan Cvetkovic <[email protected]>
- Loading branch information
1 parent
ff8117e
commit b308059
Showing
4 changed files
with
504 additions
and
1 deletion.
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
4
public/models/Detectors/components/DetectorRulesView/DetectorRulesViewMock.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
public/models/Detectors/components/FieldMappingsView/FieldMappingsViewMock.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { FieldMapping } from '../../../../../models/interfaces'; | ||
import { detectorMock } from '../../InterfacesMock.test'; | ||
const notificationsStart = { | ||
toasts: [], | ||
}; | ||
|
||
const fieldMapping: FieldMapping = { | ||
indexFieldName: 'indexFieldName', | ||
ruleFieldName: 'ruleFieldName', | ||
}; | ||
export default { | ||
detector: detectorMock, | ||
existingMappings: [fieldMapping, fieldMapping], | ||
editFieldMappings: jest.fn(), | ||
notifications: notificationsStart, | ||
}; |
17 changes: 17 additions & 0 deletions
17
public/pages/Detectors/components/FieldMappingsView/FieldMappingsView.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import React from 'react'; | ||
import { render } from '@testing-library/react'; | ||
import props from '../../../../models/Detectors/components/FieldMappingsView/FieldMappingsViewMock.test'; | ||
import { expect } from '@jest/globals'; | ||
import { FieldMappingsView } from './FieldMappingsView'; | ||
|
||
describe('<FieldMappingsView /> spec', () => { | ||
it('renders the component', () => { | ||
const view = render(<FieldMappingsView {...props} />); | ||
expect(view).toMatchSnapshot(); | ||
}); | ||
}); |
Oops, something went wrong.