tests: if description undefined, use exception
This commit is contained in:
parent
1fde0a401d
commit
5f761113cc
2 changed files with 3 additions and 3 deletions
|
@ -164,7 +164,7 @@ describe('TransactionBuilder', function() {
|
|||
})
|
||||
|
||||
fixtures.invalid.build.forEach(function(f) {
|
||||
describe('for ' + f.description, function() {
|
||||
describe('for ' + (f.description || f.exception), function() {
|
||||
beforeEach(function() {
|
||||
if (f.txHex) {
|
||||
var tx = Transaction.fromHex(f.txHex)
|
||||
|
@ -175,7 +175,7 @@ describe('TransactionBuilder', function() {
|
|||
}
|
||||
})
|
||||
|
||||
it('throws on ' + f.exception, function() {
|
||||
it('throws', function() {
|
||||
assert.throws(function() {
|
||||
txb.build()
|
||||
}, new RegExp(f.exception))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue