Skip to content

Commit

Permalink
Fix result text issue (#94)
Browse files Browse the repository at this point in the history
* 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
github-actions[bot] and Mingkun Ma committed Nov 11, 2022
1 parent 6e01834 commit 8db842b
Show file tree
Hide file tree
Showing 8 changed files with 3,804 additions and 3,450 deletions.

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions public/components/query_compare/__test__/create_index.test.tsx
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();
});
});
});

Large diffs are not rendered by default.

Loading

0 comments on commit 8db842b

Please sign in to comment.