Completed
Push — master ( 8bee3a...8be05e )
by greg
01:46
created

test/process.js   A

Complexity

Total Complexity 5
Complexity/F 1

Size

Lines of Code 29
Function Count 5

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 29
rs 10
wmc 5
mnd 0
bc 5
fnc 5
bpm 1
cpm 1
noi 2

1 Function

Rating   Name   Duplication   Size   Complexity  
A process.js ➔ describe(ꞌProcessꞌ) 0 20 1
1
var chai = require('chai');
2
var path = require('path');
3
4
var config = require('../src/cli').config
5
config.set({root: path.join(__dirname,'fixtures')})
6
7
var Manager = require('../src/cli').Manager;
8
var abeExtend = require('../src/cli').abeExtend;
9
10
describe('Process', function() {
11
  before( function(done) {
12
    Manager.instance.init()
13
      .then(function () {
14
        this.fixture = {}
15
        done()
16
        
17
      }.bind(this))
18
  });
19
20
  it('abeExtend.plugins.instance.getProcess()', function() {
21
    var file = abeExtend.plugins.instance.getProcess('test')
22
    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...
23
  });
24
25
  it('abeExtend.process', function() {
26
    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...
27
    // chai.assert.equal(res, 'test', 'Hook test failed !')
28
  });
29
});
30