forked from syndicate-lang/preserves
More specific check for DecodeError
This commit is contained in:
parent
7efce309f6
commit
85804a9e6d
|
@ -203,6 +203,7 @@ describe('common test suite', () => {
|
||||||
assert.fail("but it didn't");
|
assert.fail("but it didn't");
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
assert(e instanceof DecodeError);
|
assert(e instanceof DecodeError);
|
||||||
|
assert(!(e instanceof ShortPacket));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue