blob: 8279547ccd3c76597ba5c1af768fa5ba3713e8b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import { shallow } from 'enzyme';
import expect from 'expect';
import React from 'react';
import SubmitButton from 'src/common/submit_button/submit_button';
describe('SubmitButton', () => {
let submitButton;
beforeEach(() => {
submitButton = shallow(<SubmitButton buttonText='Add Email' />);
});
it('renders an input of type submit for add email', () => {
expect(submitButton.find('input[type="submit"]').props().value).toEqual('Add Email');
});
});
|