component.test.mst 349 B

123456789101112131415
  1. import React from 'react';
  2. import { expect } from 'chai';
  3. import { shallow } from 'enzyme';
  4. import {{ name }} from '../../src/components/{{ name }}/{{ name }}';
  5. describe('{{ name }}', () => {
  6. it('exists', () => {
  7. expect({{ name }}).toBeDefined();
  8. });
  9. it('basic', () => {
  10. expect(shallow(<{{ name }} />)).toMatchSnapshot();
  11. });
  12. });