summaryrefslogtreecommitdiff
path: root/web-ui/test/unit/common/submit_button/submit_button.spec.js
blob: 629b35458dcedbab5f6cb853264c5e722e46ceb7 (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')
  })
})