import React from 'react'; import Button from '../../src/react/Button.js'; import renderer from 'react-test-renderer'; describe('Button', () => { test('Button - Default - Primary', () => { const button = renderer.create().toJSON(); expect(button).toMatchSnapshot(); }); test('Button - Default - Primary - Disabled', () => { const button = renderer.create().toJSON(); expect(button).toMatchSnapshot(); }); test('Button - Default - White', () => { const button = renderer.create().toJSON(); expect(button).toMatchSnapshot(); }); test('Button - Default - Gray', () => { const button = renderer.create().toJSON(); expect(button).toMatchSnapshot(); }); test('Button - Default - Positive', () => { const button = renderer.create().toJSON(); expect(button).toMatchSnapshot(); }); test('Button - Default - Negative', () => { const button = renderer.create().toJSON(); expect(button).toMatchSnapshot(); }); test('Button - Default - Warning', () => { const button = renderer.create().toJSON(); expect(button).toMatchSnapshot(); }); test('Button - Outline - Primary', () => { const button = renderer.create().toJSON(); expect(button).toMatchSnapshot(); }); test('Button - Outline - Gray', () => { const button = renderer.create().toJSON(); expect(button).toMatchSnapshot(); }); test('Button - Outline - Positive', () => { const button = renderer.create().toJSON(); expect(button).toMatchSnapshot(); }); test('Button - Outline - Negative', () => { const button = renderer.create().toJSON(); expect(button).toMatchSnapshot(); }); test('Button - Link - Primary', () => { const button = renderer.create().toJSON(); expect(button).toMatchSnapshot(); }); test('Button - Link - Primary - Disabled', () => { const button = renderer.create().toJSON(); expect(button).toMatchSnapshot(); }); test('Button - Link - Primary - With Icon', () => { const button = renderer.create().toJSON(); expect(button).toMatchSnapshot(); }); });