forked from EFForg/https-everywhere
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.js
More file actions
17 lines (15 loc) · 684 Bytes
/
test.js
File metadata and controls
17 lines (15 loc) · 684 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
'use strict';
const assert = require('chai').assert;
const utils = require('./utils.js');
describe('index.js', () => {
describe('Utils.return_label', () => {
it('returns proper rank label', () => {
let testUtils = new utils.Utils();
assert.equal(testUtils.return_label(89), 'top-100', "doesn't match label");
assert.equal(testUtils.return_label(899), 'top-1k', "doesn't match label");
assert.equal(testUtils.return_label(8999), 'top-10k', "doesn't match label");
assert.equal(testUtils.return_label(89999), 'top-100k', "doesn't match label");
assert.equal(testUtils.return_label(899999), 'top-1m', "doesn't match label");
});
});
});