mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-21 16:52:04 -07:00
fix(getPublicKey): Switching from GET to POST calls, to pass usrObj
This commit is contained in:
@@ -82,7 +82,7 @@ describe('#Encryption Router', () => {
|
||||
.resolves(mockData.mockFulcrumTxHistory)
|
||||
sandbox
|
||||
.stub(encryptionRoute.bchjs.RawTransactions, 'getRawTransaction')
|
||||
.resolves(mockData.mockTxDetails2)
|
||||
.resolves([mockData.mockTxDetails2])
|
||||
}
|
||||
|
||||
const result = await encryptionRoute.getPublicKey(req, res)
|
||||
@@ -110,7 +110,7 @@ describe('#Encryption Router', () => {
|
||||
}
|
||||
|
||||
const result = await encryptionRoute.getPublicKey(req, res)
|
||||
// console.log(`result: ${JSON.stringify(result, null, 2)}`)
|
||||
console.log(`result: ${JSON.stringify(result, null, 2)}`)
|
||||
|
||||
assert.property(result, 'success')
|
||||
assert.equal(result.success, false)
|
||||
@@ -130,7 +130,7 @@ describe('#Encryption Router', () => {
|
||||
.resolves(mockData.mockFulcrumNoSendBalance)
|
||||
sandbox
|
||||
.stub(encryptionRoute.bchjs.RawTransactions, 'getRawTransaction')
|
||||
.resolves(mockData.mockNoSendTx)
|
||||
.resolves([mockData.mockNoSendTx])
|
||||
}
|
||||
|
||||
const result = await encryptionRoute.getPublicKey(req, res)
|
||||
|
||||
Reference in New Issue
Block a user