UNPKG

proj4

Version:

Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.

63 lines (59 loc) 1.55 kB
<html> <head> <meta charset="utf-8"> <title>Mocha Tests</title> <link rel="stylesheet" href="../node_modules/mocha/mocha.css" /> </head> <body> <script src="../node_modules/mocha/mocha.js"></script> <div id="mocha"></div> <script src="../node_modules/curl/src/curl.js"></script> <script src="test.js"></script> <script> curl.config({ //By default load any module IDs from js/lib waitSeconds:15, use: { mocha: { attach: 'mocha' }, mochaPhantomJS: { attach: 'mochaPhantomJS' }, testPoints: { attach: 'testPoints' }, aWKT: { attach: 'aWKT' } },packages: [ { name: 'proj4', location: '../lib', main: 'index.js', config: { moduleLoader: '../node_modules/curl/src/curl/loader/cjsm11' } /* <-- hey! */ }, { name:'mgrs', location:'../node_modules/mgrs', main:'mgrs.js', config: { moduleLoader: '../node_modules/curl/src/curl/loader/cjsm11' } /* <-- hey! */ } ] }); mocha.setup({ ui: "bdd", globals: ["console"], timeout: 300000, ignoreLeaks: true }); curl(['../node_modules/chai/chai.js', 'proj4','testData']).then(startTests).then(function(){ if (window.mochaPhantomJS) { window.mochaPhantomJS.run(); } else { window.mocha.run(); } }); </script> </body> </html>