diff --git a/frontend/test/components/MapView/ImportDialogBox.spec.js b/frontend/test/components/MapView/ImportDialogBox.spec.js
index 5059d375..91c18f6e 100644
--- a/frontend/test/components/MapView/ImportDialogBox.spec.js
+++ b/frontend/test/components/MapView/ImportDialogBox.spec.js
@@ -19,7 +19,7 @@ describe('ImportDialogBox', function() {
it('has an Export CSV button', () => {
const wrapper = shallow()
- const button = wrapper.find('.export-csv')
+ const button = wrapper.find('.export-csv')
expect(button).to.exist
button.simulate('click')
expect(csvExport).to.have.property('callCount', 1)
@@ -27,7 +27,7 @@ describe('ImportDialogBox', function() {
it('has an Export JSON button', () => {
const wrapper = shallow()
- const button = wrapper.find('.export-json')
+ const button = wrapper.find('.export-json')
expect(button).to.exist
button.simulate('click')
expect(jsonExport).to.have.property('callCount', 1)
diff --git a/frontend/test/components/common/InfoAndHelp.spec.js b/frontend/test/components/common/InfoAndHelp.spec.js
index cef37273..c7625647 100644
--- a/frontend/test/components/common/InfoAndHelp.spec.js
+++ b/frontend/test/components/common/InfoAndHelp.spec.js
@@ -1,3 +1,4 @@
+/* global describe, it */
import React from 'react'
import { expect } from 'chai'
import { shallow } from 'enzyme'
@@ -19,7 +20,7 @@ function assertContent({ currentUser, map }) {
/>)
if (map) {
- it('renders MapInfoBox', () => expect(wrapper.find(MapInfoBox)).to.exist)
+ it('renders MapInfoBox', () => { expect(wrapper.find(MapInfoBox)).to.exist })
it('renders Map Info icon', () => {
expect(wrapper.find('.mapInfoIcon')).to.exist
expect(wrapper.find('.mapInfoIcon .tooltipsAbove').text()).to.equal('Map Info')
@@ -27,8 +28,8 @@ function assertContent({ currentUser, map }) {
expect(onInfoClick).to.have.property('callCount', 1)
})
} else {
- it('does not render MapInfoBox', () => expect(wrapper.find(MapInfoBox).length).to.equal(0))
- it('does not render Map Info icon', () => expect(wrapper.find('.mapInfoIcon').length).to.equal(0))
+ it('does not render MapInfoBox', () => { expect(wrapper.find(MapInfoBox).length).to.equal(0) })
+ it('does not render Map Info icon', () => { expect(wrapper.find('.mapInfoIcon').length).to.equal(0) })
}
if (map && currentUser) {
@@ -38,7 +39,7 @@ function assertContent({ currentUser, map }) {
expect(onStarClick).to.have.property('callCount', 1)
})
} else {
- it('does not render the Star icon', () => expect(wrapper.find('.starMap').length).to.equal(0))
+ it('does not render the Star icon', () => { expect(wrapper.find('.starMap').length).to.equal(0) })
}
// common content
diff --git a/frontend/test_support/dom.js b/frontend/test_support/dom.js
index af2c1bf9..5dd4a9ef 100644
--- a/frontend/test_support/dom.js
+++ b/frontend/test_support/dom.js
@@ -5,12 +5,12 @@ const win = doc.defaultView
global.document = doc
global.window = win
-// take all properties of the window object and also attach it to the
+// take all properties of the window object and also attach it to the
// mocha global object
propagateToGlobal(win)
// from mocha-jsdom https://github.com/rstacruz/mocha-jsdom/blob/master/index.js#L80
-function propagateToGlobal (window) {
+function propagateToGlobal(window) {
for (let key in window) {
if (!window.hasOwnProperty(key)) continue
if (key in global) continue