Skip to content

Commit

Permalink
lint(xychart/setupTooltipTest)
Browse files Browse the repository at this point in the history
  • Loading branch information
williaster committed Oct 15, 2020
1 parent 8a425e6 commit 8be48e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/visx-xychart/test/mocks/setupTooltipTest.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* eslint import/no-extraneous-dependencies: 'off' */
import React from 'react';
import jest from 'jest';
import { mount } from 'enzyme';
import { DataProvider, EventEmitterProvider, TooltipContext, TooltipContextType } from '../../src';

Expand All @@ -12,9 +11,11 @@ const providerProps = {

const defaultTooltipContext = {
tooltipOpen: false,
showTooltip: jest.fn(),
/* eslint-disable no-undef */
showTooltip: jest.fn(), // eslint doesn't know jest is in context in non-.test file
updateTooltip: jest.fn(),
hideTooltip: jest.fn(),
/* eslint-enable no-undef */
};

// sets up boilerplate context for testing tooltips
Expand Down

0 comments on commit 8be48e7

Please sign in to comment.