MetaPhase-Consulting/State-TalentMAP

View on GitHub
src/Components/GlossaryEditor/GlossaryEditorSearch/GlossaryEditorSearch.test.jsx

Summary

Maintainability
A
0 mins
Test Coverage
import { shallow } from 'enzyme';
import toJSON from 'enzyme-to-json';
import GlossaryEditorSearch from './GlossaryEditorSearch';

describe('GlossaryEditorSearchComponent', () => {
  it('is defined', () => {
    const wrapper = shallow(
      <GlossaryEditorSearch
        onUpdate={() => {}}
      />,
    );
    expect(wrapper).toBeDefined();
  });

  it('matches snapshot', () => {
    const wrapper = shallow(
      <GlossaryEditorSearch
        onUpdate={() => {}}
      />,
    );
    expect(toJSON(wrapper)).toMatchSnapshot();
  });
});