Skip to content

Commit ba60a89

Browse files
committed
updated tests for simple-git updates
1 parent dafe411 commit ba60a89

9 files changed

+9
-9
lines changed

test/unit/src/config/index.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('Config', () => {
2121
*/
2222
function initializeConfig() {
2323
return proxyquire('../../../../src/config', {
24-
'simple-git/promise': () => git,
24+
'simple-git': () => git,
2525
os,
2626
fs,
2727
'repoPath/.gbrc': repoConfig,

test/unit/src/finish.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe('Finish', () => {
3737
sinon.stub(console, 'log');
3838

3939
finish = proxyquire('../../../src/finish', {
40-
'simple-git/promise': () => git,
40+
'simple-git': () => git,
4141
'./config': {getConfig},
4242
'./model/branch': {fromFullBranchName},
4343
'./utils': utils

test/unit/src/open.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('Git Open', () => {
2121
};
2222

2323
main = proxyquire('../../../src/open', {
24-
'simple-git/promise': () => git,
24+
'simple-git': () => git,
2525
'./utils': utils,
2626
open
2727
});

test/unit/src/pr.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('Git Pr', () => {
2828
};
2929

3030
main = proxyquire('../../../src/pr', {
31-
'simple-git/promise': () => git,
31+
'simple-git': () => git,
3232
'./utils': utils,
3333
'./model/branch': {fromFullBranchName},
3434
'./config': {getConfig},

test/unit/src/promote.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ describe('Promote', () => {
4141
sinon.stub(console, 'log');
4242

4343
promote = proxyquire('../../../src/promote', {
44-
'simple-git/promise': () => git,
44+
'simple-git': () => git,
4545
'./config': {getConfig},
4646
'./model/branch': {fromFullBranchName},
4747
'./utils': utils

test/unit/src/rename.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('Rename', () => {
3333
sinon.stub(console, 'log');
3434

3535
rename = proxyquire('../../../src/rename', {
36-
'simple-git/promise': () => git,
36+
'simple-git': () => git,
3737
'./config': {getConfig},
3838
'./model/branch': {fromFullBranchName},
3939
'./utils': utils

test/unit/src/start.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('Start', () => {
2929
sinon.stub(console, 'log');
3030

3131
start = proxyquire('../../../src/start', {
32-
'simple-git/promise': () => git,
32+
'simple-git': () => git,
3333
'./config': {getConfig},
3434
'./utils': utils
3535
});

test/unit/src/update.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('Update', () => {
3636
sinon.stub(console, 'log');
3737

3838
update = proxyquire('../../../src/update', {
39-
'simple-git/promise': () => git,
39+
'simple-git': () => git,
4040
'./config': {getConfig},
4141
'./model/branch': {fromFullBranchName},
4242
'./utils': utils

test/unit/src/utils.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('Utils', () => {
3333
sinon.stub(console, 'log');
3434

3535
utils = proxyquire('../../../src/utils', {
36-
'simple-git/promise': () => git,
36+
'simple-git': () => git,
3737
'./config': {getConfig}
3838
});
3939
});

0 commit comments

Comments
 (0)