Compare commits

...
2 Commits
Author SHA1 Message Date
Chris Troutner 41163096e3 Merge pull request #44 from Permissionless-Software-Foundation/ct-unstable
fix(raw transactions): Updating for change in output of abc full node
2020-10-31 10:14:19 -07:00
Chris Troutner 1b3e1cc293 fix(raw transactions): Updating for change in output of abc full node 2020-10-31 10:11:44 -07:00
+3 -2
View File
@@ -975,6 +975,7 @@ describe('#Raw-Transactions', () => {
// Restore the saved URL. // Restore the saved URL.
process.env.RPC_BASEURL = savedUrl2 process.env.RPC_BASEURL = savedUrl2
}) })
it('should submit hex encoded transaction', async () => { it('should submit hex encoded transaction', async () => {
// This is a difficult test to run as transaction hex is invalid after a // This is a difficult test to run as transaction hex is invalid after a
// block confirmation. So the unit tests simulates what the output 'should' // block confirmation. So the unit tests simulates what the output 'should'
@@ -1004,7 +1005,7 @@ describe('#Raw-Transactions', () => {
// Integration test // Integration test
} else { } else {
assert.hasAllKeys(result, ['error']) assert.hasAllKeys(result, ['error'])
assert.include(result.error, 'Missing inputs') assert.include(result.error, 'bad-txns-inputs-missingorspent')
} }
}) })
}) })
@@ -1159,7 +1160,7 @@ describe('#Raw-Transactions', () => {
// Integration test // Integration test
} else { } else {
assert.hasAllKeys(result, ['error']) assert.hasAllKeys(result, ['error'])
assert.include(result.error, 'Missing inputs') assert.include(result.error, 'bad-txns-inputs-missingorspent')
} }
}) })
}) })