import React from 'react'; import { shallow } from 'enzyme'; import SchemaVersion from 'components/Schemas/Details/SchemaVersion'; import { versions } from './fixtures'; describe('SchemaVersion', () => { it('renders versions', () => { const wrapper = shallow(); expect(wrapper.find('td').length).toEqual(3); expect(wrapper.exists('JSONEditor')).toBeTruthy(); }); it('matches snapshot', () => { expect(shallow()).toMatchSnapshot(); }); });