import React from 'react'; import { create } from 'react-test-renderer'; import { AwesomeButton, AwesomeButtonProgress, AwesomeButtonSocial, } from '../index'; describe('Examining the syntax of Jest tests', () => { it('renders AB without crashing', () => { const tree = create(); expect(tree).toMatchSnapshot(); }); it('renders ABP without crashing', () => { const tree = create( null} />); expect(tree).toMatchSnapshot(); }); it('renders ABS without crashing', () => { const tree = create(); expect(tree).toMatchSnapshot(); }); it('Should render a primary button', () => { const tree = create(Button); expect(tree).toMatchSnapshot(); }); it('Should render a secondary button', () => { const tree = create(Button); expect(tree).toMatchSnapshot(); }); it('Should render a button without moveEvents', () => { const tree = create( Button ); expect(tree).toMatchSnapshot(); }); it('Should render a button with a progress bar', () => { const tree = create( { next(); }}> Button ); expect(tree).toMatchSnapshot(); }); });