Skip to content

Commit b34169d

Browse files
committed
refactor out tests to new suite
1 parent 07ace37 commit b34169d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/node/decimal128_tests.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,10 @@ describe('Decimal128', function () {
12361236
expect(() => new Decimal128(Buffer.alloc(3))).to.throw(byteLengthErrMsg);
12371237
expect(() => new Decimal128(new Uint8Array(17))).to.throw(byteLengthErrMsg);
12381238
expect(() => new Decimal128(Buffer.alloc(17))).to.throw(byteLengthErrMsg);
1239-
new Decimal128(Buffer.alloc(16));
1240-
new Decimal128(new Uint8Array(16));
1239+
});
1240+
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();
12411244
});
12421245
});

0 commit comments

Comments
 (0)