-
Notifications
You must be signed in to change notification settings - Fork 0
/
core.test.js
61 lines (47 loc) · 1.74 KB
/
core.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
54
55
56
57
58
59
60
61
// These tests do nothing but verify that the exported objects have all expected functions.
const core = require('../src/core')
describe('Bounding Box Functions Exported', () => {
test('valid2DBoundingBox', () => {
expect('valid2DBoundingBox' in core.boundingBoxes).toBeTruthy()
})
test('valid3DBoundingBox', () => {
expect('valid3DBoundingBox' in core.boundingBoxes).toBeTruthy()
})
test('validBoundingBox', () => {
expect('validBoundingBox' in core.boundingBoxes).toBeTruthy()
})
})
describe('Coordinate Functions Exported', () => {
test('valid2DCoordinate', () => {
expect('valid2DCoordinate' in core.coordinates).toBeTruthy()
})
test('valid3DCoordinate', () => {
expect('valid3DCoordinate' in core.coordinates).toBeTruthy()
})
test('validCoordinate', () => {
expect('validCoordinate' in core.coordinates).toBeTruthy()
})
})
describe('Geometry Functions Exported', () => {
test('anyGeometry', () => {
expect('anyGeometry' in core.geometries).toBeTruthy()
})
test('lineStringGeometry', () => {
expect('lineStringGeometry' in core.geometries).toBeTruthy()
})
test('multiLineStringGeometry', () => {
expect('multiLineStringGeometry' in core.geometries).toBeTruthy()
})
test('multiPointGeometry', () => {
expect('multiPointGeometry' in core.geometries).toBeTruthy()
})
test('multiPolygonGeometry', () => {
expect('multiPolygonGeometry' in core.geometries).toBeTruthy()
})
test('pointGeometry', () => {
expect('pointGeometry' in core.geometries).toBeTruthy()
})
test('polygonGeometry', () => {
expect('polygonGeometry' in core.geometries).toBeTruthy()
})
})