Skip to content

Commit

Permalink
Use shallow instead of mount
Browse files Browse the repository at this point in the history
  • Loading branch information
tiffon committed Oct 19, 2017
1 parent f41bcf6 commit b2b8ae5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/TracePage/SpanGraph/CanvasSpanGraph.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
// THE SOFTWARE.

import React from 'react';
import { mount } from 'enzyme';
import { shallow } from 'enzyme';

import CanvasSpanGraph from './CanvasSpanGraph';

describe('<CanvasSpanGraph>', () => {
it('renders without exploding', () => {
const items = [{ valueWidth: 1, valueOffset: 1, serviceName: 'service-name-0' }];
const wrapper = mount(<CanvasSpanGraph items={[]} valueWidth={4000} />);
const wrapper = shallow(<CanvasSpanGraph items={[]} valueWidth={4000} />);
expect(wrapper).toBeDefined();
wrapper.instance()._setCanvasRef({
getContext: () => ({
Expand Down

0 comments on commit b2b8ae5

Please sign in to comment.