Completed
Push — master ( dc6b63...48675a )
by
unknown
02:10
created

test/process.js   A

Complexity

Total Complexity 5
Complexity/F 1

Size

Lines of Code 37
Function Count 5

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
B process.js ➔ describe(ꞌProcessꞌ) 0 29 1
1
var chai = require('chai');
2
3
var config = require('../src/cli').config
4
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...
5
6
var Manager = require('../src/cli').Manager;
7
var abeExtend = require('../src/cli').abeExtend;
8
9
describe('Process', function() {
10
  before( function(done) {
11
    Manager.instance.init()
12
      .then(function () {
13
        this.fixture = {}
14
        done()
15
        
16
      }.bind(this))
17
  });
18
19
  /**
20
   * abeExtend.plugins.instance.getProcess
21
   * 
22
   */
23
  it('abeExtend.plugins.instance.getProcess()', function() {
24
    var file = abeExtend.plugins.instance.getProcess('test')
25
    chai.expect(file).to.not.be.null;
0 ignored issues
show
introduced by
The result of the property access to chai.expect(file).to.not.be.null is not used.
Loading history...
26
  });
27
28
29
  /**
30
   * abeExtend.process
31
   * 
32
   */
33
  it('abeExtend.process', function() {
34
    var res = abeExtend.process('test', [])
0 ignored issues
show
Unused Code introduced by
The variable res seems to be never used. Consider removing it.
Loading history...
35
    // chai.assert.equal(res, 'test', 'Hook test failed !')
36
  });
37
});
38