Skip to content

Commit 20f7c78

Browse files
committed
Update clear search input test
1 parent 950d5d0 commit 20f7c78

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/js/__tests__/components/search-input.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,9 @@ describe('Test for Search Input Component', function () {
6565
spyOn(Actions, 'clearSearchTerm');
6666

6767
var instance = TestUtils.renderIntoDocument(<SearchInput />);
68-
var clearButton = TestUtils.scryRenderedDOMComponentsWithClass(instance, 'octicon-x')[0];
69-
7068
expect(Actions.clearSearchTerm).not.toHaveBeenCalled();
7169

72-
TestUtils.Simulate.click(clearButton);
73-
70+
instance.clearSearch();
7471
expect(Actions.clearSearchTerm).toHaveBeenCalled();
7572
});
7673

0 commit comments

Comments
 (0)