UNPKG

382 BJavaScriptView Raw
1global.sinon = require('sinon');
2global.chai = require('chai');
3global.expect = chai.expect;
4
5global.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