File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 3
3
const Buffer = require ( 'buffer' ) . Buffer ;
4
4
const BSON = require ( '../../lib/bson' ) ;
5
5
const Decimal128 = BSON . Decimal128 ;
6
+ const EJSON = BSON . EJSON ;
6
7
const expect = require ( 'chai' ) . expect ;
7
- const EJSON = require ( '../../lib/extended_json' ) ;
8
8
9
- var deserializeOptions = {
9
+ const deserializeOptions = {
10
10
bsonRegExp : true ,
11
11
promoteLongs : true ,
12
12
promoteValues : false
13
13
} ;
14
14
15
- var serializeOptions = {
15
+ const serializeOptions = {
16
16
ignoreUndefined : false
17
17
} ;
18
18
@@ -25,7 +25,7 @@ function nativeToBson(native) {
25
25
}
26
26
27
27
function bsonToNative ( bson ) {
28
- var deserializeOptions = {
28
+ const deserializeOptions = {
29
29
bsonRegExp : true ,
30
30
promoteLongs : true ,
31
31
promoteValues : false
@@ -209,7 +209,7 @@ describe('BSON Corpus', function() {
209
209
describe ( 'decodeErrors' , function ( ) {
210
210
scenario . decodeErrors . forEach ( d => {
211
211
it ( d . description , function ( ) {
212
- var B = Buffer . from ( d . bson , 'hex' ) ;
212
+ const B = Buffer . from ( d . bson , 'hex' ) ;
213
213
expect ( ( ) => BSON . deserialize ( B , deserializeOptions ) ) . to . throw ( ) ;
214
214
} ) ;
215
215
} ) ;
You can’t perform that action at this time.
0 commit comments