| Total Complexity | 5 |
| Complexity/F | 1 |
| Lines of Code | 37 |
| Function Count | 5 |
| Duplicated Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | var chai = require('chai'); |
||
| 2 | |||
| 3 | var config = require('../src/cli').config |
||
| 4 | config.set({root: __dirname + '/fixtures'}) |
||
|
|
|||
| 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; |
||
| 26 | }); |
||
| 27 | |||
| 28 | |||
| 29 | /** |
||
| 30 | * abeExtend.process |
||
| 31 | * |
||
| 32 | */ |
||
| 33 | it('abeExtend.process', function() { |
||
| 34 | var res = abeExtend.process('test', []) |
||
| 35 | // chai.assert.equal(res, 'test', 'Hook test failed !') |
||
| 36 | }); |
||
| 37 | }); |
||
| 38 |