Skip to content

Commit

Permalink
Updated testing
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Dong <[email protected]>
  • Loading branch information
danieldong51 committed Jul 22, 2024
1 parent 1fd7127 commit 99313c6
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 0 deletions.

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
Expand Up @@ -11,6 +11,7 @@ import { IndexPatternField } from '../../../../../data/common';
import { findTestSubject } from '@elastic/eui/lib/test';
import { FieldBucket } from './field_bucket';
import { Bucket } from './types';
import { EuiSmallButtonIcon } from '@elastic/eui';

const mockUseIndexPatterns = jest.fn(() => ({ selected: 'mockIndexPattern' }));
const mockUseOnAddFilter = jest.fn();
Expand Down Expand Up @@ -71,5 +72,6 @@ describe('visBuilder field bucket', function () {
const comp = mountComponent(field, bucket);
expect(findTestSubject(comp, 'plus-bytes-value').length).toBe(1);
expect(findTestSubject(comp, 'minus-bytes-value').length).toBe(1);
expect(comp.find(EuiSmallButtonIcon)).toMatchSnapshot();
});
});

0 comments on commit 99313c6

Please sign in to comment.