From c24a6e1ad31ebcf06f286912e2a7f7939d71b65f Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Wed, 3 Jul 2019 17:01:47 +0700 Subject: [PATCH] Include test case number in test output --- test/psbt.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/psbt.js b/test/psbt.js index b26e5cb..c75bce8 100644 --- a/test/psbt.js +++ b/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})