Comparing version 0.7.15 to 0.7.16
@@ -256,3 +256,5 @@ var mongodb = require('mongodb'); | ||
if (err) return callback(err); | ||
callback(null, cols.map(function(c) { return c.collectionName})); | ||
callback(null, cols.map(function(c) { | ||
return c.collectionName; | ||
})); | ||
}); | ||
@@ -259,0 +261,0 @@ }; |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "0.7.15", | ||
"version": "0.7.16", | ||
"repository": "git://github.com/gett/mongojs.git", | ||
@@ -12,0 +12,0 @@ "contributors": [ |
@@ -9,3 +9,3 @@ | ||
db.collection('b').save({hello: "world"}, function(err, b) { | ||
db.getCollectionNames(function(colNames) { | ||
db.getCollectionNames(function(err, colNames) { | ||
assert.notEqual(colNames.indexOf('a'), -1); | ||
@@ -12,0 +12,0 @@ assert.notEqual(colNames.indexOf('b'), -1); |
22668
602