More specific check for DecodeError

This commit is contained in:
Tony Garnock-Jones 2019-08-31 14:09:21 +01:00
parent 7efce309f6
commit 85804a9e6d
1 changed files with 1 additions and 0 deletions

View File

@ -203,6 +203,7 @@ describe('common test suite', () => {
assert.fail("but it didn't");
} catch (e) {
assert(e instanceof DecodeError);
assert(!(e instanceof ShortPacket));
}
});
});