// @flow
import React from 'react';
import { renderSnapshot } from '../../../../utils/tests';

import { MapPin } from './index';

describe('MapPin', () => {
  describe('snapshot', () => {
    it('is disabled', () => {
      const mapPin = renderSnapshot(<MapPin disabled />);
      expect(mapPin).toMatchSnapshot();
    });

    it('is not disabled', () => {
      const mapPin = renderSnapshot(<MapPin disabled={false} />);
      expect(mapPin).toMatchSnapshot();
    });
  });
});
