1 | global.sinon = require('sinon');
|
2 | global.chai = require('chai');
|
3 | global.expect = chai.expect;
|
4 |
|
5 | global.Git = {
|
6 |
|
7 | _content: "",
|
8 |
|
9 | absPath: function (file) {
|
10 | return file;
|
11 | },
|
12 |
|
13 | rm: sinon.stub().callsArgOn(3, this),
|
14 |
|
15 | mv: sinon.stub().callsArgOn(4, this),
|
16 |
|
17 | add: sinon.stub().callsArgOn(3, this),
|
18 |
|
19 | show: function (a, b, cb) {
|
20 | cb.call(this, null, this._content);
|
21 | }
|
22 |
|
23 | };
|
24 |
|