react-map-gl/test/node.js
Collin Donahue-Oponski 0aa18ee7ae Add transformRequest prop to map components. (#426)
* Add map prop/option `transformRequest`.

* Upgrade sinon package to webpack-compatible version.

* Fix test for map onLoad prop.

* Add test for new Map prop `transformRequest`.

* Document and cleanup new `tranformRequest` prop on Map component.
2017-12-19 00:54:34 -08:00

13 lines
375 B
JavaScript

// Enables ES2015 import/export in Node.js
require('reify');
// Registers an alias for this module
const path = require('path');
const moduleAlias = require('module-alias');
// Needed for `npm run test`, whereas `npm run test-browser` alias is declared in webpack.config.js
moduleAlias.addAlias('react-map-gl', path.resolve('./src'));
// Run the tests
require('./index');