Skip to content

Commit 315761b

Browse files
committed
Fix test
1 parent 2617d90 commit 315761b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/plugins/discover/public/application/components/sidebar/discover_field.test.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ function getComponent(selected = false, showDetails = false, useShortDots = fals
8484
onAddFilter: jest.fn(),
8585
onAddField: jest.fn(),
8686
onRemoveField: jest.fn(),
87-
onShowDetails: jest.fn(),
8887
showDetails,
8988
selected,
9089
useShortDots,
@@ -104,9 +103,9 @@ describe('discover sidebar field', function () {
104103
findTestSubject(comp, 'fieldToggle-bytes').simulate('click');
105104
expect(props.onRemoveField).toHaveBeenCalledWith('bytes');
106105
});
107-
it('should trigger onShowDetails', function () {
106+
it('should trigger getDetails', function () {
108107
const { comp, props } = getComponent(true);
109108
findTestSubject(comp, 'field-bytes-showDetails').simulate('click');
110-
expect(props.onShowDetails).toHaveBeenCalledWith(true, props.field);
109+
expect(props.getDetails).toHaveBeenCalledWith(props.field);
111110
});
112111
});

0 commit comments

Comments
 (0)