import VMap from './Map.component';

import { transportation, highlights } from '../../specs/mockData/mapData.mock';

const API_KEY = process.env.STORYBOOK_GOOGLE_MAPS_API_KEY;

describe('<Map>', () => {
  it('SAD: Render props', () => {
    const json = renderJSON(
      <VMap
        apiKey={API_KEY}
        defaultCenter={[-24.0092604, -56.2386781]}
        language="en"
        transportation={transportation}
        highlights={highlights}
        settings={{ width: [1 / 2], height: '600px' }}
      />,
    );

    expect(json.type).toBe('div');
  });

  it('SAD: without props', () => {
    expect(() => shallow(<VMap />)).toThrow();
  });
});
