Add timelion tests

This commit is contained in:
Rashid Khan 2016-08-15 11:29:17 -07:00
parent 88cb02c2e6
commit c50c5fba53
40 changed files with 3 additions and 1 deletions

View file

@ -164,6 +164,7 @@
"angular-mocks": "1.4.7",
"auto-release-sinon": "1.0.3",
"babel-eslint": "4.1.8",
"chai": "3.5.0",
"chokidar": "1.4.3",
"chromedriver": "2.22.1",
"elasticdump": "2.1.1",
@ -203,6 +204,7 @@
"nock": "2.10.0",
"npm": "2.15.8",
"portscanner": "1.0.0",
"proxyquire": "1.7.10",
"simple-git": "1.37.0",
"sinon": "1.17.2",
"source-map": "0.4.4",

View file

@ -8,7 +8,7 @@ const invoke = require('./helpers/invoke_series_fn.js');
describe(filename, () => {
it('returns a series in which all numbers are the same', () => {
return invoke(fn, [5]).then((r) => {
expect(_.map(r.output.list[0].data, 1)).to.eql([5, 5, 5, 5]);
expect(_.unique(_.map(r.output.list[0].data, 1))).to.eql([5]);
});
});