Skip to content

Commit

Permalink
add more test for icon and aggregated view
Browse files Browse the repository at this point in the history
Signed-off-by: yujin-emma <yujin.emma.work@gmail.com>
  • Loading branch information
yujin-emma committed May 7, 2024
1 parent c09285c commit f26d6d6
Show file tree
Hide file tree
Showing 6 changed files with 1,002 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/

import { shallow } from 'enzyme';
import React from 'react';
import { EmptyIcon } from './empty_icon';

describe('Test on empty icon', () => {
it('should render the component normally', () => {
const component = shallow(<EmptyIcon />);
expect(component).toMatchSnapshot();
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/

import { shallow } from 'enzyme';
import React from 'react';
import { ErrorIcon } from './error_icon';

describe('Test on empty icon', () => {
it('should render the component normally', () => {
const component = shallow(<ErrorIcon />);
expect(component).toMatchSnapshot();
});
});
Loading

0 comments on commit f26d6d6

Please sign in to comment.