Skip to content
This repository was archived by the owner on Sep 23, 2024. It is now read-only.

Commit 8a7f6c3

Browse files
committed
refactor(extended-json): use mongodb-extjson in corpus tests
1 parent a1cfd46 commit 8a7f6c3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"nan": "^2.9.2"
2424
},
2525
"devDependencies": {
26+
"mongodb-extjson": "^2.1.0",
2627
"nodeunit": "~0.9.0"
2728
},
2829
"main": "./index",

Diff for: test/node/bson_corpus_tests.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
var BSON = require('../..'),
22
Decimal128 = BSON.Decimal128,
33
Long = BSON.Long,
4-
deserialize = require('../../extended-json').deserialize,
5-
serialize = require('../../extended-json').serialize,
4+
EJSON = require('mongodb-extjson'),
5+
deserialize = EJSON.parse,
6+
serialize = EJSON.stringify,
67
f = require('util').format,
78
assert = require('assert'),
89
fs = require('fs');

0 commit comments

Comments
 (0)