Completed
Push — master ( 34f5de...9cf608 )
by greg
45s
created

test/cms/templates/insertDebugtoolUtilities.js   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 22
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 22
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 insertDebugtoolUtilities.js ➔ describe(ꞌcmsTemplatesꞌ) 0 10 1
1
var chai = require('chai');
2
var sinonChai = require('sinon-chai')
3
var expect = chai.expect
4
chai.use(sinonChai)
5
var sinon = require('sinon');
6
var path = require('path');
7
8
var config = require('../../../src/cli').config
9
config.set({root: path.join(process.cwd(), 'test', 'fixtures')})
10
11
var cmsTemplates = require('../../../src/cli').cmsTemplates;
12
13
describe('cmsTemplates', function() {
14
  /**
15
   * cmsTemplates.insertDebugtoolUtilities
16
   * 
17
   */
18
  it('cmsTemplates.insertDebugtoolUtilities()', function() {
19
    var txt = cmsTemplates.insertDebugtoolUtilities('</body>', false);
20
    chai.expect(txt.length).to.above(10);
21
  });
22
});
23