blob: d4308e6d224d482c23f329f775ba230c826b8f0e (
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('RaisedButton').props().label).toEqual('Add Email');
});
});
|