Skip to content

Commit

Permalink
test(Tooltip): lint test
Browse files Browse the repository at this point in the history
  • Loading branch information
williaster committed May 2, 2020
1 parent 7f8a2b8 commit 133fcaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vx-tooltip/test/Tooltip.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe('<Tooltip />', () => {
const wrapper = shallow(<Tooltip unstyled>Hello</Tooltip>);
const styles = wrapper.props().style;
Object.keys(defaultStyles).forEach(key => {
expect(styles[key]).toBe(undefined);
expect(styles[key]).toBeUndefined();
});
});

Expand All @@ -34,7 +34,7 @@ describe('<Tooltip />', () => {
boxShadow: '0 2px 3px rgba(133,133,133,0.5)',
lineHeight: '2em',
};
const wrapper = shallow(<Tooltip style={newStyles}></Tooltip>);
const wrapper = shallow(<Tooltip style={newStyles} />);
const styles = wrapper.props().style;
Object.entries(newStyles).forEach(([key, value]) => {
expect(styles[key]).toBe(value);
Expand Down

0 comments on commit 133fcaa

Please sign in to comment.