content: import React from 'react';
  import { SearchPage } from 'routes/Search/components/SearchPage';
  import { shallow } from 'enzyme';
  
  
  describe('(Component) SearchPage', () => {
    let _props, _wrapper;
  
    beforeEach(() => {
  
      _props = {
        isRequesting : false,
        changeDate: () => {},
        date: {},
        prompt: [],
        chooseOrigin: () => {},
        chooseDestination: () => {},
        results: [],
        searchPlace: () => {}
      };
  
      _wrapper = shallow(<SearchPage {..._props} />);
    })
  
    it('should display spinner img depends on flag', () => {
      expect(_wrapper.find('img')).is.not.exist();
      _wrapper.setProps({'isRequesting': true});
      expect(_wrapper.find('img')).is.exist();
    });
  
  });
  