Fix linting errors
This commit is contained in:
parent
edda50b287
commit
54c7cdad00
@ -20,4 +20,3 @@ export const valueOf = jest.fn()
|
||||
export const callId = 'call1234'
|
||||
|
||||
export const iceServers = []
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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'
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user