diff --git a/frontend/test/.eslintrc.js b/frontend/test/.eslintrc.js new file mode 100644 index 00000000..8d883376 --- /dev/null +++ b/frontend/test/.eslintrc.js @@ -0,0 +1,5 @@ +module.exports = { + "rules": { + "no-unused-expressions": "off" + } +} diff --git a/frontend/test/components/common/InfoAndHelp.spec.js b/frontend/test/components/common/InfoAndHelp.spec.js index c7625647..5171f976 100644 --- a/frontend/test/components/common/InfoAndHelp.spec.js +++ b/frontend/test/components/common/InfoAndHelp.spec.js @@ -20,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') @@ -28,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) { @@ -39,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