Skip to content
This repository was archived by the owner on Feb 3, 2022. It is now read-only.

Commit a5e667d

Browse files
mbroadstnbbeeken
authored andcommitted
test(dbref): remove dbref test until mongodb module is updated
The driver still uses an old version of js-bson, until we update the dependency we will skip this test.
1 parent cfe5ec7 commit a5e667d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/extend_mongodb_tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ var environments = [
7474
binary: new Binary(buffer),
7575
date: date,
7676
code: new Code('function() {}', { a: new Int32(1) }),
77-
dbRef: new DBRef('tests', new Int32(1), 'test'),
77+
// dbRef: new DBRef('tests', new Int32(1), 'test'),
7878
decimal: Decimal128.fromString('100'),
7979
double: new Double(10.1),
8080
int32: new Int32(10),
@@ -110,7 +110,7 @@ describe('Extended JSON', function() {
110110
it('should correctly extend an existing mongodb module', function() {
111111
// Serialize the document
112112
var json =
113-
'{"_id":{"$numberInt":"100"},"gh":{"$numberInt":"1"},"binary":{"$binary":{"base64":"AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4OTo7PD0+Pw==","subType":"00"}},"date":{"$date":{"$numberLong":"1488372056737"}},"code":{"$code":"function() {}","$scope":{"a":{"$numberInt":"1"}}},"dbRef":{"$ref":"tests","$id":{"$numberInt":"1"},"$db":"test"},"decimal":{"$numberDecimal":"100"},"double":{"$numberDouble":"10.1"},"int32":{"$numberInt":"10"},"long":{"$numberLong":"200"},"maxKey":{"$maxKey":1},"minKey":{"$minKey":1},"objectId":{"$oid":"111111111111111111111111"},"regexp":{"$regularExpression":{"pattern":"hello world","options":"i"}},"symbol":{"$symbol":"symbol"},"timestamp":{"$timestamp":{"t":0,"i":1000}},"int32Number":{"$numberInt":"300"},"doubleNumber":{"$numberDouble":"200.2"},"longNumberIntFit":{"$numberLong":"7036874417766400"},"doubleNumberIntFit":{"$numberLong":"19007199250000000"}}';
113+
'{"_id":{"$numberInt":"100"},"gh":{"$numberInt":"1"},"binary":{"$binary":{"base64":"AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4OTo7PD0+Pw==","subType":"00"}},"date":{"$date":{"$numberLong":"1488372056737"}},"code":{"$code":"function() {}","$scope":{"a":{"$numberInt":"1"}}},"decimal":{"$numberDecimal":"100"},"double":{"$numberDouble":"10.1"},"int32":{"$numberInt":"10"},"long":{"$numberLong":"200"},"maxKey":{"$maxKey":1},"minKey":{"$minKey":1},"objectId":{"$oid":"111111111111111111111111"},"regexp":{"$regularExpression":{"pattern":"hello world","options":"i"}},"symbol":{"$symbol":"symbol"},"timestamp":{"$timestamp":{"t":0,"i":1000}},"int32Number":{"$numberInt":"300"},"doubleNumber":{"$numberDouble":"200.2"},"longNumberIntFit":{"$numberLong":"7036874417766400"},"doubleNumberIntFit":{"$numberLong":"19007199250000000"}}';
114114

115115
assert.equal(json, extJSON.stringify(test.doc, null, 0));
116116
});

0 commit comments

Comments
 (0)