Browse Source

Include test case number in test output

psbt
Luke Childs 6 years ago
parent
commit
c24a6e1ad3
  1. 4
      test/psbt.js

4
test/psbt.js

@ -8,8 +8,8 @@ const fixtures = require('./fixtures/psbt')
describe(`Psbt`, () => {
describe('BIP174 Test Vectors', () => {
fixtures.bip174.invalid.forEach(f => {
it(`Invalid: "${f.errorMessage}"`, () => {
fixtures.bip174.invalid.forEach((f, i) => {
it(`Invalid #${i + 1}: "${f.errorMessage}"`, () => {
assert.throws(() => {
Psbt.fromBase64(f.psbt)
}, {message: f.errorMessage})

Loading…
Cancel
Save