We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1eae69 commit 735de51Copy full SHA for 735de51
test/node/object_id_tests.js
@@ -41,7 +41,7 @@ exports['should correctly create ObjectId from uppercase hexstring'] = function(
41
* @ignore
42
*/
43
exports['should correctly create ObjectId from Buffer'] = function(test) {
44
- if(!Buffer.from) return done();
+ if(!Buffer.from) return test.done();
45
var a = 'AAAAAAAAAAAAAAAAAAAAAAAA';
46
var b = new ObjectId(Buffer.from(a, 'hex'));
47
var c = b.equals(a); // => false
0 commit comments