mirror of
https://github.com/google-map-react/google-map-react.git
synced 2025-12-08 18:26:32 +00:00
Remove old tests
This commit is contained in:
parent
7ea090c583
commit
5ddec4280b
@ -4,7 +4,7 @@
|
||||
"description": "isomorphic google map react component, allows render react components on the google map",
|
||||
"main": "lib/index",
|
||||
"scripts": {
|
||||
"build:lib": "babel ./src -d lib --ignore '__tests__'",
|
||||
"build:lib": "babel ./src -d lib",
|
||||
"build:umd": "webpack src/index.js dist/GoogleMapReact.js --config webpack.config.dev.js",
|
||||
"build:umd:min": "webpack src/index.js dist/GoogleMapReact.min.js --config webpack.config.prod.js",
|
||||
"build": "npm run build:lib && npm run build:umd && npm run build:umd:min",
|
||||
|
||||
@ -1,37 +0,0 @@
|
||||
// "eye test" (c)somebody - means check output by your eyes :-)
|
||||
// TODO read how to test react components
|
||||
|
||||
import React, {PropTypes, Component} from 'react';
|
||||
import GoogleMap from '../google_map.js';
|
||||
|
||||
export default class SimpleTest extends Component {
|
||||
static propTypes = {
|
||||
center: PropTypes.array,
|
||||
zoom: PropTypes.number,
|
||||
greatPlaceCoords: PropTypes.any,
|
||||
};
|
||||
|
||||
static defaultProps = {
|
||||
center: [59.938043, 30.337157],
|
||||
zoom: 9,
|
||||
greatPlaceCoords: {lat: 59.724465, lng: 30.080121},
|
||||
};
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<GoogleMap
|
||||
center={this.props.center}
|
||||
zoom={this.props.zoom}>
|
||||
<div lat={59.955413} lng={30.337844}>----------I-PROMISE-TO---------------</div>
|
||||
<div {...this.props.greatPlaceCoords}>-------WRITE-SOME-TESTS-------------</div>
|
||||
</GoogleMap>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
const html = React.renderToString(<SimpleTest />);
|
||||
console.log(html); // eslint-disable-line no-console
|
||||
Loading…
x
Reference in New Issue
Block a user