Skip to content

Commit 485aa3c

Browse files
authored
test: bson corpus spec runner calling wrong fn (#436)
* test: bson corpus spec runner calling wrong fn * lint: fix decimal 128 import error
1 parent fc9fb5d commit 485aa3c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/node/bson_corpus_tests.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
const Buffer = require('buffer').Buffer;
44
const BSON = require('../register-bson');
5-
const Decimal128 = BSON.Decimal128;
65
const EJSON = BSON.EJSON;
76

87
const deserializeOptions = {
@@ -192,7 +191,7 @@ describe('BSON Corpus', function () {
192191
describe('parseErrors', function () {
193192
scenario.parseErrors.forEach(p => {
194193
it(p.description, function () {
195-
expect(() => Decimal128.fromString(scenario.string)).to.throw();
194+
expect(() => jsonToNative(scenario.string)).to.throw();
196195
});
197196
});
198197
});

0 commit comments

Comments
 (0)