-
Notifications
You must be signed in to change notification settings - Fork 166
/
constants.test.js
53 lines (46 loc) · 1.63 KB
/
constants.test.js
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
"use strict";
var test = require('tape');
var mapnik = require('../');
var fs = require('fs');
test('should have valid settings', (assert) => {
assert.ok(mapnik.settings);
assert.ok(mapnik.settings.paths);
assert.ok(mapnik.settings.paths.fonts.length);
//assert.ok(fs.statSync(mapnik.settings.paths.fonts));
assert.ok(mapnik.settings.paths.input_plugins.length);
assert.ok(mapnik.settings.paths.mapnik_index.length);
assert.ok(mapnik.settings.paths.shape_index.length);
assert.ok(fs.statSync(mapnik.settings.paths.input_plugins));
/* has version info */
assert.ok(mapnik.versions);
//assert.ok(mapnik.versions.node);
//assert.ok(mapnik.versions.v8);
assert.ok(mapnik.versions.mapnik);
assert.ok(mapnik.versions.mapnik_number);
assert.ok(mapnik.versions.boost);
assert.ok(mapnik.versions.boost_number);
assert.ok(mapnik.Geometry.Point, 1);
assert.ok(mapnik.Geometry.LineString, 2);
assert.ok(mapnik.Geometry.Polygon, 3);
assert.end();
});
test('should have valid version info', (assert) => {
/* has version info */
assert.ok(mapnik.versions);
//assert.ok(mapnik.versions.node);
//assert.ok(mapnik.versions.v8);
assert.ok(mapnik.versions.mapnik);
assert.ok(mapnik.versions.mapnik_number);
assert.ok(mapnik.versions.boost);
assert.ok(mapnik.versions.boost_number);
assert.ok(mapnik.Geometry.Point, 1);
assert.ok(mapnik.Geometry.LineString, 2);
assert.ok(mapnik.Geometry.Polygon, 3);
assert.end();
});
test('should expose Geometry enums', (assert) => {
assert.ok(mapnik.Geometry.Point, 1);
assert.ok(mapnik.Geometry.LineString, 2);
assert.ok(mapnik.Geometry.Polygon, 3);
assert.end();
});