Completed
Push — master ( 3f06be...7c320c )
by greg
01:42
created

test/config.js   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 15
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
A config.js ➔ describe(ꞌConfigꞌ) 0 11 1
1
var chai = require('chai');
2
var config = require('../src/cli').config
3
config.set({root: __dirname + '/fixtures'})
0 ignored issues
show
Compatibility introduced by
Consider using the path module for constructing paths since they are otherwise not cross-OS compatible.
Loading history...
4
5
describe('Config', function() {
6
  /**
7
   * getAbeImport
8
   * 
9
   */
10
  it('configuration file', function() {
11
    chai.assert.equal(config.localeFolder, 'locale', 'Error on config file')
12
    chai.assert.equal(config.root.substr(config.root.lastIndexOf('/') + 1), 'fixtures', 'Error on config file')
13
    chai.assert.equal(config.upload.image, 'unitimage', 'Error on config file')
14
  });
15
});
16