Include test case number in test output
This commit is contained in:
parent
1fc2e146ea
commit
c24a6e1ad3
1 changed files with 2 additions and 2 deletions
|
@ -8,8 +8,8 @@ const fixtures = require('./fixtures/psbt')
|
||||||
|
|
||||||
describe(`Psbt`, () => {
|
describe(`Psbt`, () => {
|
||||||
describe('BIP174 Test Vectors', () => {
|
describe('BIP174 Test Vectors', () => {
|
||||||
fixtures.bip174.invalid.forEach(f => {
|
fixtures.bip174.invalid.forEach((f, i) => {
|
||||||
it(`Invalid: "${f.errorMessage}"`, () => {
|
it(`Invalid #${i + 1}: "${f.errorMessage}"`, () => {
|
||||||
assert.throws(() => {
|
assert.throws(() => {
|
||||||
Psbt.fromBase64(f.psbt)
|
Psbt.fromBase64(f.psbt)
|
||||||
}, {message: f.errorMessage})
|
}, {message: f.errorMessage})
|
||||||
|
|
Loading…
Add table
Reference in a new issue