Skip to content

Commit 903e37d

Browse files
author
Markus Günther
committed
TASK: Resolve linting issues
1 parent 26d9c5e commit 903e37d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/components/themr.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ function merge(original = {}, mixin = {}) {
226226
case 'object': {
227227
//can't merge a non-object with an object
228228
throw new Error(`You are merging non-object ${mixinValue} with an object ${key}`)
229-
break
230229
}
231230

232231
case 'undefined': {

test/components/ThemeProvider.spec.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import TestUtils from 'react-dom/test-utils'
55
import { ThemeProvider } from '../../src/index'
66

77

8-
before(function () {
8+
before(() => {
99
/* eslint-disable no-console */
1010
console.error = function () {}
1111
})
1212

13-
after(function () {
13+
after(() => {
1414
delete console.error
1515
})
1616

@@ -47,8 +47,7 @@ describe('ThemeProvider', () => {
4747
)).toThrow(/expected to receive a single React element child/)
4848

4949
expect(() => TestUtils.renderIntoDocument(
50-
<ThemeProvider theme={theme}>
51-
</ThemeProvider>
50+
<ThemeProvider theme={theme} />
5251
)).toThrow(/expected to receive a single React element child/)
5352
} finally {
5453
ThemeProvider.propTypes = propTypes

test/setup.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
import raf from './tempPolyfills'
21
import { jsdom } from 'jsdom'
2+
/* eslint-disable no-unused-vars */
3+
import raf from './tempPolyfills'
4+
35

46
global.document = jsdom('<!doctype html><html><body></body></html>')
57
global.window = document.defaultView

0 commit comments

Comments
 (0)