From 16190197f72ea242ae239dc2741e2887c7008dfa Mon Sep 17 00:00:00 2001 From: Anike Arni Date: Wed, 8 Feb 2017 10:55:10 -0200 Subject: [#922] Add test coverage for new js files Since this added a lot of scripts to our npm scripts, this commit also organizes the package.json. with @tayanefernandes --- .../test/unit/common/submit_button/submit_button.spec.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 web-ui/test/unit/common/submit_button/submit_button.spec.js (limited to 'web-ui/test/unit/common/submit_button') diff --git a/web-ui/test/unit/common/submit_button/submit_button.spec.js b/web-ui/test/unit/common/submit_button/submit_button.spec.js new file mode 100644 index 00000000..629b3545 --- /dev/null +++ b/web-ui/test/unit/common/submit_button/submit_button.spec.js @@ -0,0 +1,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() + }) + + it('renders an input of type submit for add email', () => { + expect(submitButton.find('input[type="submit"]').props().value).toEqual('Add Email') + }) +}) -- cgit v1.2.3