Skip to content

Commit 7cdcb99

Browse files
feat(mbe): fix comments
1 parent b3d08a1 commit 7cdcb99

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/__tests__/api/master/consolidate.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,14 @@ describe('POST /api/:coin/wallet/:walletId/consolidate', () => {
223223
subType: 'onPrem',
224224
keys: ['user-key-id', 'backup-key-id', 'bitgo-key-id'],
225225
});
226+
// Mock keychain get request
227+
const keychainGetNock = nock(bitgoApiUrl)
228+
.get(`/api/v2/${coin}/key/user-key-id`)
229+
.matchHeader('any', () => true)
230+
.reply(200, {
231+
id: 'user-key-id',
232+
pub: 'xpub_user',
233+
});
226234

227235
// Mock allowsAccountConsolidations to return false
228236
const allowsConsolidationsStub = sinon
@@ -240,6 +248,7 @@ describe('POST /api/:coin/wallet/:walletId/consolidate', () => {
240248
response.status.should.equal(500);
241249

242250
walletGetNock.done();
251+
keychainGetNock.done();
243252
sinon.assert.calledOnce(allowsConsolidationsStub);
244253
});
245254

0 commit comments

Comments
 (0)