From 54c7cdad00e0bcb753606e04df29bb5d322567c4 Mon Sep 17 00:00:00 2001 From: Jerko Steiner Date: Sat, 17 Jun 2017 23:17:31 -0400 Subject: [PATCH] Fix linting errors --- src/client/__mocks__/window.js | 1 - src/client/__tests__/window-test.js | 2 +- src/client/actions/__tests__/SocketActions-test.js | 1 - src/client/components/App.js | 3 ++- src/client/components/Input.js | 2 +- src/client/index.js | 4 ++-- 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/client/__mocks__/window.js b/src/client/__mocks__/window.js index 7548158..62fe787 100644 --- a/src/client/__mocks__/window.js +++ b/src/client/__mocks__/window.js @@ -20,4 +20,3 @@ export const valueOf = jest.fn() export const callId = 'call1234' export const iceServers = [] - diff --git a/src/client/__tests__/window-test.js b/src/client/__tests__/window-test.js index 383ce78..30f0531 100644 --- a/src/client/__tests__/window-test.js +++ b/src/client/__tests__/window-test.js @@ -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) diff --git a/src/client/actions/__tests__/SocketActions-test.js b/src/client/actions/__tests__/SocketActions-test.js index 816057c..2d99b1d 100644 --- a/src/client/actions/__tests__/SocketActions-test.js +++ b/src/client/actions/__tests__/SocketActions-test.js @@ -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' diff --git a/src/client/components/App.js b/src/client/components/App.js index 33433ac..ff5572e 100644 --- a/src/client/components/App.js +++ b/src/client/components/App.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 diff --git a/src/client/components/Input.js b/src/client/components/Input.js index b8e01ca..734f0c2 100644 --- a/src/client/components/Input.js +++ b/src/client/components/Input.js @@ -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() diff --git a/src/client/index.js b/src/client/index.js index f633859..8b1a25f 100644 --- a/src/client/index.js +++ b/src/client/index.js @@ -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 = ( @@ -12,5 +12,5 @@ const component = ( ) -ReactDOM.render(component, document.querySelector('#container')) +ReactDOM.render(component, document.getElementById('container')) play()