diff --git a/src/components/voteUrlProcessor/index.js b/src/components/voteUrlProcessor/index.js index ff5c2a8e4..e2765d003 100644 --- a/src/components/voteUrlProcessor/index.js +++ b/src/components/voteUrlProcessor/index.js @@ -5,8 +5,6 @@ import { withRouter } from 'react-router'; import { urlVotesFound, voteLookupStatusCleared, - voteToggled, - votesAdded, } from '../../actions/voting'; import VoteUrlProcessor from './voteUrlProcessor'; @@ -28,8 +26,6 @@ const mapStateToProps = state => ({ }); const mapDispatchToProps = dispatch => ({ - voteToggled: data => dispatch(voteToggled(data)), - votesAdded: data => dispatch(votesAdded(data)), urlVotesFound: data => dispatch(urlVotesFound(data)), clearVoteLookupStatus: () => dispatch(voteLookupStatusCleared()), }); diff --git a/src/components/voteUrlProcessor/index.test.js b/src/components/voteUrlProcessor/index.test.js index 40e8979a4..a69f8ea2e 100644 --- a/src/components/voteUrlProcessor/index.test.js +++ b/src/components/voteUrlProcessor/index.test.js @@ -42,20 +42,6 @@ describe('VoteUrlProcessorHOC', () => { expect(wrapper.find(VoteUrlProcessor)).to.have.lengthOf(1); }); - it('should bind voteToggled action to VoteUrlProcessor props.voteToggled', () => { - const actionsSpy = sinon.spy(votingActions, 'voteToggled'); - wrapper.find(VoteUrlProcessor).props().voteToggled(actionData); - expect(actionsSpy).to.be.calledWith(actionData); - actionsSpy.restore(); - }); - - it('should bind votesAdded action to VoteUrlProcessor props.votesAdded', () => { - const actionsSpy = sinon.spy(votingActions, 'votesAdded'); - wrapper.find(VoteUrlProcessor).props().votesAdded(actionData); - expect(actionsSpy).to.be.calledWith(actionData); - actionsSpy.restore(); - }); - it('should bind urlVotesFound action to VoteUrlProcessor props.urlVotesFound', () => { const actionMock = sinon.mock(votingActions); actionMock.expects('urlVotesFound').withExactArgs(actionData).returns({ type: 'DUMMY' }); diff --git a/src/components/voteUrlProcessor/voteUrlProcessor.js b/src/components/voteUrlProcessor/voteUrlProcessor.js index 9e8d4d715..00ee56750 100644 --- a/src/components/voteUrlProcessor/voteUrlProcessor.js +++ b/src/components/voteUrlProcessor/voteUrlProcessor.js @@ -21,7 +21,7 @@ export default class VoteUrlProcessor extends React.Component { } } - getProccessedCount() { + getProcessedCount() { return this.props.urlVoteCount - this.props.pending.length; } @@ -42,13 +42,13 @@ export default class VoteUrlProcessor extends React.Component { }; return (