forked from Zhigalov/testable-code-01
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.js
More file actions
27 lines (19 loc) · 635 Bytes
/
Copy pathtest.js
File metadata and controls
27 lines (19 loc) · 635 Bytes
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
var plu = require('./plural'),
expect = require('chai').expect;
describe('plural', function () {
it('should return first', function () {
actual = plu(["k", "ka", "kov"], 21),
expected = "k";
expect(actual).to.equal(expected);
});
it('should return second', function () {
actual = plu(["k", "ka", "kov"], 2),
expected = "ka";
expect(actual).to.equal(expected);
});
it('should return other', function () {
actual = plu(["k", "ka", "kov"], 11),
expected = "kov";
expect(actual).to.equal(expected);
});
});