diff --git a/test/components/GoogleMap.spec.js b/test/components/GoogleMap.spec.js
index 4e38021..5780f2f 100644
--- a/test/components/GoogleMap.spec.js
+++ b/test/components/GoogleMap.spec.js
@@ -104,6 +104,54 @@ describe('Components', () => {
expect(marker.parentNode.style.top).toEqual('-12.62811732746195px');
});
+ it('Should accept defaultCenter and defaultZoom props', () => {
+ const mapMarkerClassName = 'mapMarkerClassName';
+
+ class MapMarker extends Component { // eslint-disable-line react/no-multi-comp
+ render() {
+ return (
+
Marker
+ );
+ }
+ }
+
+ class MapHolder extends Component { // eslint-disable-line react/no-multi-comp
+ static propTypes = {
+ center: PropTypes.array,
+ zoom: PropTypes.number,
+ greatPlaceCoords: PropTypes.any,
+ };
+
+ static defaultProps = {
+ center: {lat: 59.938043, lng: 30.337157},
+ zoom: 9,
+ };
+
+ constructor(props) {
+ super(props);
+ }
+
+ render() {
+ return (
+
+
+
+ );
+ }
+ }
+
+ const mapHolder = TestUtils.renderIntoDocument(
+
+ );
+
+ const marker = TestUtils.findRenderedDOMComponentWithClass(mapHolder, 'mapMarkerClassName');
+ expect(marker.parentNode.style.left).toEqual('0.250129066669615px');
+ expect(marker.parentNode.style.top).toEqual('-12.62811732746195px');
+ });
+
it('Should call custom loader', () => {
const API_KEY = 'API_KEY';