Skip to content

Commit

Permalink
Improve spy variable name
Browse files Browse the repository at this point in the history
Signed-off-by: Everett Ross <reverett@uber.com>

Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
  • Loading branch information
everett980 committed Jan 16, 2019
1 parent 21a6421 commit d8242ae
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/jaeger-ui/src/components/common/GraphSearch.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,9 @@ describe('GraphSearch', () => {
it('focuses input', () => {
// Mount is necessary for refs to be registered
wrapper = mount(<UnconnectedGraphSearch {...props} />);
const focusMock = jest.spyOn(wrapper.instance().inputRef, 'focus');
expect(focusMock).toHaveBeenCalledTimes(0);
const focusSpy = jest.spyOn(wrapper.instance().inputRef, 'focus');
wrapper.find(Icon).simulate('click');
expect(focusMock).toHaveBeenCalledTimes(1);
expect(focusSpy).toHaveBeenCalledTimes(1);
});

it('triggers pending queryParameter updates', () => {
Expand Down

0 comments on commit d8242ae

Please sign in to comment.