Fix linting errors

This commit is contained in:
Jerko Steiner 2017-06-17 23:17:31 -04:00
parent edda50b287
commit 54c7cdad00
6 changed files with 6 additions and 7 deletions

View File

@ -20,4 +20,3 @@ export const valueOf = jest.fn()
export const callId = 'call1234'
export const iceServers = []

View File

@ -62,7 +62,7 @@ describe('window', () => {
window.document.body.appendChild(v2)
v1.play = jest.fn()
v2.play = jest.fn()
})
})
afterEach(() => {
window.document.body.removeChild(v1)
window.document.body.removeChild(v2)

View File

@ -4,7 +4,6 @@ jest.mock('../../window.js')
import * as SocketActions from '../SocketActions.js'
import * as constants from '../../constants.js'
import Peer from 'simple-peer'
import reducers from '../../reducers/index.js'
import { EventEmitter } from 'events'
import { createStore } from '../../store.js'

View File

@ -15,7 +15,8 @@ export default class App extends React.Component {
active: PropTypes.string,
init: PropTypes.func.isRequired,
notify: PropTypes.func.isRequired,
notifications: PropTypes.objectOf(NotificationPropTypes).isRequired
notifications: PropTypes.objectOf(NotificationPropTypes).isRequired,
sendMessage: PropTypes.func.isRequired
}
componentDidMount () {
const { init } = this.props

View File

@ -4,7 +4,7 @@ import React from 'react'
export default class Input extends React.Component {
static propTypes = {
notify: PropTypes.func.isRequired,
sendMessage: PropTypes.func.isRequired,
sendMessage: PropTypes.func.isRequired
}
constructor () {
super()

View File

@ -4,7 +4,7 @@ import React from 'react'
import ReactDOM from 'react-dom'
import store from './store.js'
import { Provider } from 'react-redux'
import { play } from './window/video.js'
import { play } from './window.js'
const component = (
<Provider store={store}>
@ -12,5 +12,5 @@ const component = (
</Provider>
)
ReactDOM.render(component, document.querySelector('#container'))
ReactDOM.render(component, document.getElementById('container'))
play()