text: import { BrowserRouter } from 'react-router-dom';
  import Center from '../../components/Center.jsx';
  
  describe('Center Component', () => {
    const props = {
      centerDetails: {
        id: "1",
        name: "",
        description: {
          substr: () => {}
        },
        location: {
          substr: () => {}
        },
        capacity: "",
        price: "",
        available: 'true'
      },
      show: () => {}
    };
    const initialState = {
      eventReducer: {
        userEvents: []
      },
      centerReducer: {
        allCenters: []
      }
    };
    const store = mockStore(initialState);
  
    it('it should render Center component', () => {
      const wrapper = mount(<BrowserRouter><Provider store={store} ><Center {...props} /></Provider></BrowserRouter>);
      expect(wrapper).toMatchSnapshot();
    });
  
    it('it should render Center component', () => {
      props.centerDetails.available = 'false';
      const wrapper = mount(<BrowserRouter><Provider store={store}><Center {...props} /></Provider></BrowserRouter>);
      expect(wrapper.length).toEqual(1);
    });
  
   /*it('it should handle onClick event', () => {
      const wrapper = shallow(<BrowserRouter><Provider store={store} ><Center {...props} /></Provider></BrowserRouter>);
      //let viewCenterButton = wrapper.find('.btn-primary');
      //expect(viewCenterButton.length).toEqual(1);
      let submitButton = wrapper.find('.btn-success');
      expect(submitButton.length).toEqual(1);
      viewCenterButton.simulate('click');
      submitButton.simulate('click');
    });  */
  });
  