We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07ace37 commit b34169dCopy full SHA for b34169d
test/node/decimal128_tests.js
@@ -1236,7 +1236,10 @@ describe('Decimal128', function () {
1236
expect(() => new Decimal128(Buffer.alloc(3))).to.throw(byteLengthErrMsg);
1237
expect(() => new Decimal128(new Uint8Array(17))).to.throw(byteLengthErrMsg);
1238
expect(() => new Decimal128(Buffer.alloc(17))).to.throw(byteLengthErrMsg);
1239
- new Decimal128(Buffer.alloc(16));
1240
- new Decimal128(new Uint8Array(16));
+ });
+
1241
+ it('does not throw error for an empty Buffer of correct length constructor argument', () => {
1242
+ expect(() => new Decimal128(Buffer.alloc(16))).to.not.throw();
1243
+ expect(() => new Decimal128(new Uint8Array(16))).to.not.throw();
1244
});
1245
0 commit comments