diff --git a/src/browser/components/molecules/scorecard/index.js b/src/browser/components/molecules/scorecard/index.js
index 7ccc127..3163660 100644
--- a/src/browser/components/molecules/scorecard/index.js
+++ b/src/browser/components/molecules/scorecard/index.js
@@ -5,10 +5,8 @@ export default class Scorecard extends Component {
const {questions, answered, skipped} = this.props
return (
)
}
diff --git a/src/browser/components/pages/game/index.js b/src/browser/components/pages/game/index.js
index 42459e4..3015714 100644
--- a/src/browser/components/pages/game/index.js
+++ b/src/browser/components/pages/game/index.js
@@ -41,14 +41,14 @@ export default class Game extends Component {
-
-
-
diff --git a/test/browser/atoms/form_input_test.js b/test/browser/atoms/form_input_test.js
new file mode 100644
index 0000000..7360131
--- /dev/null
+++ b/test/browser/atoms/form_input_test.js
@@ -0,0 +1,21 @@
+import React from 'react'
+import { expect } from 'chai'
+import { shallow, mount } from 'enzyme'
+import { jsdom } from 'jsdom'
+
+import FormInput from '../../../src/browser/components/atoms/form-input/index'
+
+describe('
', () => {
+
+ it('should return a div', () => {
+ const wrapper = shallow(
)
+ expect(wrapper.find('div.uk-form-controls')).to.have.length(1)
+ })
+
+ it('should have an input field inside the main div', () => {
+ const wrapper = mount(
)
+ expect(wrapper.children()).to.have.length(1)
+ expect(wrapper.find('div.uk-form-controls').childAt(0).type()).to.equal('input')
+ expect(wrapper.find('#form-horizontal-text')).to.have.length(1)
+ })
+})
diff --git a/test/browser/atoms/profile_box_test.js b/test/browser/atoms/profile_box_test.js
new file mode 100644
index 0000000..c833ff5
--- /dev/null
+++ b/test/browser/atoms/profile_box_test.js
@@ -0,0 +1,22 @@
+import React from 'react'
+import { expect } from 'chai'
+import { shallow, mount } from 'enzyme'
+import { jsdom } from 'jsdom'
+
+import ProfileBox from '../../../src/browser/components/atoms/profile-box/index'
+
+describe('
', () => {
+
+ it('should return a div', () => {
+ const wrapper = shallow(
)
+ expect(wrapper.children()).to.have.length(1)
+ })
+
+ it('the child element should be a div', () => {
+ const wrapper = mount(
)
+ expect(wrapper.find('div.uk-grid-small').childAt(0).type()).to.equal('div')
+ })
+
+
+
+});
diff --git a/test/browser/atoms/select_tag_test.js b/test/browser/atoms/select_tag_test.js
new file mode 100644
index 0000000..f8111f2
--- /dev/null
+++ b/test/browser/atoms/select_tag_test.js
@@ -0,0 +1,48 @@
+import React from 'react'
+import { expect } from 'chai'
+import { shallow, mount } from 'enzyme'
+import { jsdom } from 'jsdom'
+
+import SelectTag from '../../../src/browser/components/atoms/form-select/index'
+
+
+describe('
', () => {
+ const label = 'difficulty'
+ const options = ['Javascript', 'SQL', 'http']
+ const value = 'SQL'
+
+ it('should return a div', () => {
+ const wrapper = shallow(
)
+ expect(wrapper.find('div.uk-margin')).to.have.length(1)
+ })
+
+ context('the outer div should contain two html elements', () => {
+ it('should have a label', () => {
+ const wrapper = mount(
)
+ expect(wrapper.find('div.uk-margin').childAt(0).type()).to.equal('label')
+ expect(wrapper.props().label).to.equal('difficulty')
+ })
+
+ it('should have a div', () => {
+ const wrapper = mount(
)
+ expect(wrapper.find('div.uk-margin').childAt(1).type()).to.equal('div')
+ })
+ })
+
+ context('inner divs child should be a select', () => {
+ it('is a selector', () => {
+ const wrapper = mount(
)
+ expect(wrapper.find('div.uk-form-controls').children().type()).to.equal('select')
+ })
+ it('should display a value', () => {
+ const wrapper = mount(
)
+ expect(wrapper.props().value).to.equal('SQL')
+ })
+ })
+
+ it('should render N+1