Completed
Push — master ( 16cf2a...23fe36 )
by greg
57s
created

test/cms/editor/handlebars/folders.js   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 20
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
nc 1
dl 0
loc 20
rs 10
c 1
b 0
f 0
wmc 2
mnd 0
bc 2
fnc 2
bpm 1
cpm 1
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A describe(ꞌcmsEditor.foldersꞌ) 0 12 1
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