-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Change results number to displayed number Signed-off-by: Mingkun Ma <[email protected]> * fix: Result text wrap Signed-off-by: Mingkun Ma <[email protected]> * fix: Unit test Signed-off-by: Mingkun Ma <[email protected]> Signed-off-by: Mingkun Ma <[email protected]> Co-authored-by: Mingkun Ma <[email protected]> (cherry picked from commit 8fc68ae) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
6e01834
commit 8db842b
Showing
8 changed files
with
3,804 additions
and
3,450 deletions.
There are no files selected for viewing
400 changes: 400 additions & 0 deletions
400
public/components/query_compare/__test__/__snapshots__/create_index.test.tsx.snap
Large diffs are not rendered by default.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
public/components/query_compare/__test__/create_index.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,24 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { configure, mount } from 'enzyme'; | ||
import Adapter from 'enzyme-adapter-react-16'; | ||
import React from 'react'; | ||
import { waitFor } from '@testing-library/react'; | ||
import { CreateIndex } from '../create_index'; | ||
|
||
describe('Create index component', () => { | ||
configure({ adapter: new Adapter() }); | ||
|
||
it('Renders create index component', async () => { | ||
const wrapper = mount(<CreateIndex />); | ||
|
||
wrapper.update(); | ||
|
||
await waitFor(() => { | ||
expect(wrapper).toMatchSnapshot(); | ||
}); | ||
}); | ||
}); |
3,904 changes: 1,608 additions & 2,296 deletions
3,904
...are/search_result/result_components/__test__/__snapshots__/result_component.test.tsx.snap
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.