Completed
Push — master ( 6eff60...46c46b )
by
unknown
01:53
created

test/process.js   A

Complexity

Total Complexity 5
Complexity/F 1

Size

Lines of Code 38
Function Count 5

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 0
c 1
b 0
f 1
nc 1
dl 0
loc 38
rs 10
wmc 5
mnd 0
bc 5
fnc 5
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 Plugins = require('../src/cli').Plugins;
8
var abeProcess = require('../src/cli/helpers/abe-process').default
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
  /**
21
   * getRoutes
22
   * 
23
   */
24
  it('getProcess()', function() {
25
    var file = Plugins.instance.getProcess('test')
26
    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...
27
  });
28
29
30
  /**
31
   * Hooks.instance.trigger
32
   * 
33
   */
34
  it('abeProcess', function() {
35
    var res = abeProcess('test', [])
0 ignored issues
show
Unused Code introduced by
The variable res seems to be never used. Consider removing it.
Loading history...
36
    // chai.assert.equal(res, 'test', 'Hook test failed !')
37
  });
38
});
39