-
Notifications
You must be signed in to change notification settings - Fork 2
/
test.js
31 lines (29 loc) · 1.09 KB
/
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
/* global describe, it */
const assert = require('chai').assert
const aeronav = require('./index')
describe('aeronav-charts', () => {
it('should exist', () => {
assert(aeronav !== undefined)
})
it('should expose vfr functions', () => {
assert(aeronav.vfr !== undefined)
assert(aeronav.vfr.all !== undefined)
assert(aeronav.vfr.sectionals !== undefined)
assert(aeronav.vfr.terminalArea !== undefined)
assert(aeronav.vfr.helicopter !== undefined)
assert(aeronav.vfr.grandCanyon !== undefined)
assert(aeronav.vfr.planning !== undefined)
assert(aeronav.vfr.caribbean !== undefined)
})
it('should expose ifr functions', () => {
assert(aeronav.ifr !== undefined)
assert(aeronav.ifr.all !== undefined)
assert(aeronav.ifr.enrouteLow !== undefined)
assert(aeronav.ifr.enrouteHigh !== undefined)
assert(aeronav.ifr.enrouteLowHighAlaska !== undefined)
assert(aeronav.ifr.enrouteArea !== undefined)
assert(aeronav.ifr.enrouteHawaiiPacific !== undefined)
assert(aeronav.ifr.planning !== undefined)
assert(aeronav.ifr.gulf !== undefined)
})
})