-
Notifications
You must be signed in to change notification settings - Fork 2
/
airport-test.js
36 lines (27 loc) · 1.13 KB
/
airport-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
var assert = require('chai').assert
var Airport = require('./airport');
describe('Airport', function() {
it.skip('should be a function', function() {
assert.isFunction(Airport);
});
it.skip('should instantiate our aiport', function() {
var airport = new Airport();
assert.isObject(airport);
});
it.skip('should have an airport name', function() {
var airport1 = new Airport('Denver International Airport');
var airport2 = new Airport('Newark Liberty International Airport');
assert.equal(airport1.name, 'Denver International Airport');
assert.equal(airport2.name, 'Newark Liberty International Airport');
});
it.skip('should default with no planes stationed', function() {
var airport = new Airport('Denver International Airport');
assert.deepEqual(airport.planes, []);
});
it.skip('should know how many stations are available', function() {
var airport1 = new Airport('Denver International Airport', 12);
var airport2 = new Airport('Newark Liberty International Airport', 4);
assert.equal(airport1.stationsAvailable, 12);
assert.equal(airport2.stationsAvailable, 4);
});
});