Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@doodle/components / controls / Button / __tests__ / Button.spec.js
Size: Mime:
import React from 'react';
import { mount } from 'enzyme';

import Button from '../Button';

describe('Button', () => {
  it('matches the snapshot: basic button', () => {
    const component = mount(<Button>Hello</Button>);
    expect(component).toMatchSnapshot();
  });

  it('matches the snapshot: link', () => {
    const component = mount(<Button href="/">Hello</Button>);
    expect(component).toMatchSnapshot();
  });
});