Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | var chai = require('chai'); |
||
11 | describe('Sort', function() { |
||
12 | before( function(done) { |
||
13 | Manager.instance.init() |
||
14 | .then(function () { |
||
15 | done() |
||
16 | |||
17 | }.bind(this)) |
||
|
|||
18 | }); |
||
19 | |||
20 | /** |
||
21 | * coreUtils.sort.shuffle |
||
22 | * |
||
23 | */ |
||
24 | it('coreUtils.sort.shuffle', function() { |
||
25 | var list = Manager.instance.getList() |
||
26 | var shuffled = coreUtils.sort.shuffle(list) |
||
27 | chai.expect(shuffled[0].name).to.be.oneOf(['article-2.json', 'article-1.json', 'homepage-1.json']); |
||
28 | }); |
||
29 | }); |
||
30 |