| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
 | | <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-amd/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-amd/src/curl/loader/cjsm11' } /* <-- hey! */ |  |         }, |  |         { |  |           name:'mgrs', |  |           location:'../node_modules/mgrs', |  |           main:'mgrs.js', |  |           config: { moduleLoader: '../node_modules/curl-amd/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> | 
 |