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 callId = 'call1234'
|
||||||
|
|
||||||
export const iceServers = []
|
export const iceServers = []
|
||||||
|
|
||||||
|
|||||||
@ -62,7 +62,7 @@ describe('window', () => {
|
|||||||
window.document.body.appendChild(v2)
|
window.document.body.appendChild(v2)
|
||||||
v1.play = jest.fn()
|
v1.play = jest.fn()
|
||||||
v2.play = jest.fn()
|
v2.play = jest.fn()
|
||||||
})
|
})
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
window.document.body.removeChild(v1)
|
window.document.body.removeChild(v1)
|
||||||
window.document.body.removeChild(v2)
|
window.document.body.removeChild(v2)
|
||||||
|
|||||||
@ -4,7 +4,6 @@ jest.mock('../../window.js')
|
|||||||
import * as SocketActions from '../SocketActions.js'
|
import * as SocketActions from '../SocketActions.js'
|
||||||
import * as constants from '../../constants.js'
|
import * as constants from '../../constants.js'
|
||||||
import Peer from 'simple-peer'
|
import Peer from 'simple-peer'
|
||||||
import reducers from '../../reducers/index.js'
|
|
||||||
import { EventEmitter } from 'events'
|
import { EventEmitter } from 'events'
|
||||||
import { createStore } from '../../store.js'
|
import { createStore } from '../../store.js'
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,8 @@ export default class App extends React.Component {
|
|||||||
active: PropTypes.string,
|
active: PropTypes.string,
|
||||||
init: PropTypes.func.isRequired,
|
init: PropTypes.func.isRequired,
|
||||||
notify: PropTypes.func.isRequired,
|
notify: PropTypes.func.isRequired,
|
||||||
notifications: PropTypes.objectOf(NotificationPropTypes).isRequired
|
notifications: PropTypes.objectOf(NotificationPropTypes).isRequired,
|
||||||
|
sendMessage: PropTypes.func.isRequired
|
||||||
}
|
}
|
||||||
componentDidMount () {
|
componentDidMount () {
|
||||||
const { init } = this.props
|
const { init } = this.props
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import React from 'react'
|
|||||||
export default class Input extends React.Component {
|
export default class Input extends React.Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
notify: PropTypes.func.isRequired,
|
notify: PropTypes.func.isRequired,
|
||||||
sendMessage: PropTypes.func.isRequired,
|
sendMessage: PropTypes.func.isRequired
|
||||||
}
|
}
|
||||||
constructor () {
|
constructor () {
|
||||||
super()
|
super()
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import React from 'react'
|
|||||||
import ReactDOM from 'react-dom'
|
import ReactDOM from 'react-dom'
|
||||||
import store from './store.js'
|
import store from './store.js'
|
||||||
import { Provider } from 'react-redux'
|
import { Provider } from 'react-redux'
|
||||||
import { play } from './window/video.js'
|
import { play } from './window.js'
|
||||||
|
|
||||||
const component = (
|
const component = (
|
||||||
<Provider store={store}>
|
<Provider store={store}>
|
||||||
@ -12,5 +12,5 @@ const component = (
|
|||||||
</Provider>
|
</Provider>
|
||||||
)
|
)
|
||||||
|
|
||||||
ReactDOM.render(component, document.querySelector('#container'))
|
ReactDOM.render(component, document.getElementById('container'))
|
||||||
play()
|
play()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user