Commit e6d5ca11 authored by Jon Parsons's avatar Jon Parsons Committed by Andrew Newdigate

remove unneeded test in search-header-container

parent 4196f0b3
import { equal, deepEqual } from 'assert';
import assert from 'assert';
import React from 'react';
import { spy } from 'sinon';
import { shallow } from 'enzyme';
import SearchHeaderContainer from '../../../../../../shared/containers/components/search/SearchHeaderContainer.jsx';
import { subscribe } from '../../../../../../shared/dispatcher';
import { REQUEST_UPDATE_FORUM_SUBSCRIPTION_STATE, SUBSCRIPTION_STATE_UNSUBSCRIBED } from '../../../../../../shared/constants/forum';
import { SUBSCRIPTION_STATE_UNSUBSCRIBED } from '../../../../../../shared/constants/forum';
describe('<SearchHeaderContainer />', function(){
......@@ -20,15 +17,8 @@ describe('<SearchHeaderContainer />', function(){
);
});
it('should dispatch the right action when the SearchHeader FollowButton is clicked', () => {
const handle = spy();
subscribe(REQUEST_UPDATE_FORUM_SUBSCRIPTION_STATE, handle);
wrapper.find('SearchHeader').at(0).prop('onSubscribeButtonClick')();
equal(handle.callCount, 1);
var args = handle.getCall(0).args;
equal(args.length, 1);
deepEqual(args[0], { isSubscribed: true });
it('should render', () => {
assert(wrapper.length);
});
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment