Skip to content

Commit

Permalink
✅ fix autosuggest tests after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
faival committed Jun 14, 2018
1 parent 37b23a3 commit 36ead88
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/autoSuggest/index.test.js
Expand Up @@ -152,7 +152,6 @@ describe('AutoSuggest', () => {
which: keyCodes.enter,
});
expect(saveSearchSpy).not.to.have.been.calledWith();
expect(props.searchClearSuggestions).to.have.been.calledWith();
expect(props.history.push).to.have.been
.calledWith(`${routes.searchResult.pathPrefix}${routes.searchResult.path}/notExistingDelegate`);
});
Expand Down Expand Up @@ -188,8 +187,7 @@ describe('AutoSuggest', () => {
keyCode: keyCodes.tab,
which: keyCodes.tab,
});
expect(submitSearchAnythingSpy).to.have.been.calledWith();
expect(props.searchClearSuggestions).to.have.been.calledWith();
expect(submitSearchSpy).to.have.been.calledWith();
});

it('should close dropdown on keyboard event {escape}', () => {
Expand Down

0 comments on commit 36ead88

Please sign in to comment.