Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 20 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | import chai from 'chai' |
||
2 | import path from 'path' |
||
3 | import { |
||
4 | cmsEditor, |
||
5 | config |
||
6 | } from '../../../../src/cli' |
||
7 | config.set({root: path.join(process.cwd(), 'test', 'fixtures')}) |
||
8 | |||
9 | describe('cmsEditor.folders', function() { |
||
10 | |||
11 | /** |
||
12 | * cmsEditor.folders |
||
13 | */ |
||
14 | it('cmsEditor.folders()', function() { |
||
15 | var result = cmsEditor.folders([{path: ''}], 1, null, {'level-1': 'my wording'}) |
||
16 | var wordingExist = result.indexOf('my wording') |
||
17 | chai.expect(result).to.be.a('string') |
||
18 | chai.expect(wordingExist).to.equal(110) |
||
19 | }); |
||
20 | }); |
||
21 |