-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtest.js
52 lines (44 loc) · 1.67 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
'use strict';
require('mocha');
var assert = require('assert');
var months = require('./');
describe('months', function() {
it('should export an array', function() {
assert.equal(Array.isArray(months), true);
assert.equal(months[8], 'September');
});
it('should have abbreviations', function() {
assert.equal(Array.isArray(months.abbr), true);
assert.equal(months.abbr[8], 'Sep');
});
it('should have Italian translations', function() {
assert.equal(Array.isArray(months.it), true);
assert.equal(months.it[8], 'Settembre');
assert.equal(Array.isArray(months.abbr.it), true);
assert.equal(months.abbr.it[8], 'Set');
});
it('should have German translations', function() {
assert.equal(Array.isArray(months.de), true);
assert.equal(months.de[8], 'September');
assert.equal(Array.isArray(months.abbr.de), true);
assert.equal(months.abbr.de[8], 'Sep');
});
it('should have Greek translations', function() {
assert.equal(Array.isArray(months.gr), true);
assert.equal(months.gr[8], 'Σεπτέμβριος');
assert.equal(Array.isArray(months.abbr.gr), true);
assert.equal(months.abbr.gr[8], 'Σεπτ');
});
it('should have Dutch translations', function() {
assert.equal(Array.isArray(months.nl), true);
assert.equal(months.nl[8], 'September');
assert.equal(Array.isArray(months.abbr.nl), true);
assert.equal(months.abbr.nl[8], 'Sep');
});
it('should have Portuguese translations', function() {
assert.equal(Array.isArray(months.pt), true);
assert.equal(months.pt[8], 'Setembro');
assert.equal(Array.isArray(months.abbr.pt), true);
assert.equal(months.abbr.pt[8], 'Set');
});
});