-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.js
25 lines (20 loc) · 971 Bytes
/
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
var BobRoss = require('./');
var assert = require('assert');
assert(BobRoss.palette.length === 13);
for (var color of BobRoss.palette) {
assert(typeof color === 'string');
assert(color.indexOf('#') === 0);
}
assert(typeof BobRoss.colors.SAP_GREEN === 'string');
assert(typeof BobRoss.colors.ALIZARIN_CRIMSON === 'string');
assert(typeof BobRoss.colors.VAN_DYKE_BROWN === 'string');
assert(typeof BobRoss.colors.DARK_SIENNA === 'string');
assert(typeof BobRoss.colors.MIDNIGHT_BLACK === 'string');
assert(typeof BobRoss.colors.PRUSSIAN_BLUE === 'string');
assert(typeof BobRoss.colors.PHTHALO_BLUE === 'string');
assert(typeof BobRoss.colors.PHTHALO_GREEN === 'string');
assert(typeof BobRoss.colors.CADMIUM_YELLOW === 'string');
assert(typeof BobRoss.colors.YELLOW_OCHRE === 'string');
assert(typeof BobRoss.colors.INDIAN_YELLOW === 'string');
assert(typeof BobRoss.colors.BRIGHT_RED === 'string');
assert(typeof BobRoss.colors.TITANIUM_WHITE === 'string');