From 85804a9e6d83360012eccba3e61ae6b100e83edc Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Sat, 31 Aug 2019 14:09:21 +0100 Subject: [PATCH] More specific check for DecodeError --- implementations/javascript/test/test-codec.js | 1 + 1 file changed, 1 insertion(+) diff --git a/implementations/javascript/test/test-codec.js b/implementations/javascript/test/test-codec.js index 50a92fb..6079c06 100644 --- a/implementations/javascript/test/test-codec.js +++ b/implementations/javascript/test/test-codec.js @@ -203,6 +203,7 @@ describe('common test suite', () => { assert.fail("but it didn't"); } catch (e) { assert(e instanceof DecodeError); + assert(!(e instanceof ShortPacket)); } }); });