less strict on inputs
This commit is contained in:
parent
6c957533d6
commit
8197f9d704
2 changed files with 1 additions and 13 deletions
12
test/fixtures/p2pk.json
vendored
12
test/fixtures/p2pk.json
vendored
|
@ -66,18 +66,6 @@
|
||||||
"exception": "Not enough data",
|
"exception": "Not enough data",
|
||||||
"arguments": {}
|
"arguments": {}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"exception": "Not enough data",
|
|
||||||
"arguments": {
|
|
||||||
"input": "300602010002010001"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"exception": "Not enough data",
|
|
||||||
"arguments": {
|
|
||||||
"signature": "300602010002010001"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"description": "Non-canonical signature",
|
"description": "Non-canonical signature",
|
||||||
"exception": "Expected property \"signature\" of type \\?isCanonicalScriptSignature, got Buffer",
|
"exception": "Expected property \"signature\" of type \\?isCanonicalScriptSignature, got Buffer",
|
||||||
|
|
|
@ -26,7 +26,7 @@ const u = require('./payments.utils')
|
||||||
})
|
})
|
||||||
|
|
||||||
fixtures.invalid.forEach(function (f) {
|
fixtures.invalid.forEach(function (f) {
|
||||||
it('throws ' + (f.description || f.exception), function () {
|
it('throws ' + f.exception + (f.description ? ('for ' + f.description) : ''), function () {
|
||||||
const args = u.preform(f.arguments)
|
const args = u.preform(f.arguments)
|
||||||
|
|
||||||
assert.throws(function () {
|
assert.throws(function () {
|
||||||
|
|
Loading…
Reference in a new issue