Skip to content

Commit ede54d2

Browse files
committed
fix: bson corpus spec runner calling wrong fn
1 parent 7b351cc commit ede54d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/node/bson_corpus_tests.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ describe('BSON Corpus', function () {
192192
describe('parseErrors', function () {
193193
scenario.parseErrors.forEach(p => {
194194
it(p.description, function () {
195-
expect(() => Decimal128.fromString(scenario.string)).to.throw();
195+
expect(() => BSON.deserialize(scenario.string, deserializeOptions)).to.throw();
196196
});
197197
});
198198
});

0 commit comments

Comments
 (0)