Skip to content

Commit 9acd6b6

Browse files
committed
fix buggy test
1 parent 2362471 commit 9acd6b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/node/extended_json_tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ describe('Extended JSON', function () {
227227
binary: new Binary(''),
228228
code: new Code('function() {}'),
229229
dbRef: new DBRef('tests', new Int32(1), 'test'),
230-
decimal128: new Decimal128(128),
230+
decimal128: new Decimal128('128'),
231231
double: new Double(10.1),
232232
int32: new Int32(10),
233233
long: new Long(234),
@@ -248,7 +248,7 @@ describe('Extended JSON', function () {
248248
binary: { $binary: { base64: '', subType: '00' } },
249249
code: { $code: 'function() {}' },
250250
dbRef: { $ref: 'tests', $id: { $numberInt: '1' }, $db: 'test' },
251-
decimal128: { $numberDecimal: '0E-6176' },
251+
decimal128: { $numberDecimal: '128' },
252252
double: { $numberDouble: '10.1' },
253253
int32: { $numberInt: '10' },
254254
long: { $numberLong: '234' },

0 commit comments

Comments
 (0)