less strict on inputs

This commit is contained in:
Daniel Cousens 2018-06-06 00:09:55 +10:00
parent 6c957533d6
commit 8197f9d704
2 changed files with 1 additions and 13 deletions

View file

@ -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",

View file

@ -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 () {