
* Schema Registry index page https://github.com/provectus/kafka-ui/pull/183 * Schema Registry show page https://github.com/provectus/kafka-ui/pull/196 * Specs https://github.com/provectus/kafka-ui/pull/208 * New JsonViewer common component
17 lines
520 B
TypeScript
17 lines
520 B
TypeScript
import React from 'react';
|
|
import { shallow } from 'enzyme';
|
|
import SchemaVersion from '../SchemaVersion';
|
|
import { versions } from './fixtures';
|
|
|
|
describe('SchemaVersion', () => {
|
|
it('renders versions', () => {
|
|
const wrapper = shallow(<SchemaVersion version={versions[0]} />);
|
|
|
|
expect(wrapper.find('td').length).toEqual(3);
|
|
expect(wrapper.exists('JSONViewer')).toBeTruthy();
|
|
});
|
|
|
|
it('matches snapshot', () => {
|
|
expect(shallow(<SchemaVersion version={versions[0]} />)).toMatchSnapshot();
|
|
});
|
|
});
|