Permalink
Browse files

Merge commit '075782f42f1bb14bc91459de996c7894e617fcf0' into connection2

  • Loading branch information...
2 parents 8246ff4 + 075782f commit 31688d60792c287bbe44a984e8c50aaf8a04bacb @marcello3d committed Dec 19, 2011
Showing with 36 additions and 15 deletions.
  1. +2 −2 package.json
  2. +6 −4 test/collection1.js
  3. +4 −1 test/collection1000.js
  4. +4 −1 test/collection10000.js
  5. +4 −1 test/collection2.js
  6. +4 −1 test/distinct.js
  7. +5 −2 test/gridfs.js
  8. +3 −1 test/index.js
  9. +4 −2 test/misc.js
View
@@ -8,12 +8,12 @@
"main": "mongolian.js",
"keywords": ["mongo", "mongodb", "database", "db", "nosql"],
"dependencies": {
- "mongodb": "0.9.7-2-2",
+ "mongodb": "0.9.7-2-3",
"waiter": "0.1.1",
"taxman": "0.1.1"
},
"devDependencies": {
- "nodeunit": ">=0.6.2"
+ "nodeunit": "0.6.4"
},
"scripts": {
"test": "node_modules/.bin/nodeunit test"
View
@@ -1,4 +1,6 @@
-var Mongolian = require('../mongolian.js')
+/* Mongolian DeadBeef by Marcello Bastea-Forte - zlib license */
+
+var Mongolian = require('../mongolian')
var db,collection
@@ -20,14 +22,14 @@ module.exports = {
collection.findOne(function(error, foundRow) {
test.ifError(error)
- test.deepEqual(foundRow._id, insertedRow._id)
+ test.equal(foundRow._id.toString(), insertedRow._id.toString())
test.equal(foundRow.name, "hello world")
collection.findOne({
_id:new Mongolian.ObjectId(insertedRow._id.toString())
}, function(error, foundRow) {
test.ifError(error)
- test.deepEqual(foundRow._id, insertedRow._id)
+ test.equal(foundRow._id.toString(), insertedRow._id.toString())
test.equal(foundRow.name, "hello world")
test.done()
@@ -43,7 +45,7 @@ module.exports = {
_id:new Mongolian.ObjectId(insertedRow._id.toString())
}, function(error, foundRow) {
test.ifError(error)
- test.deepEqual(foundRow._id, insertedRow._id)
+ test.equal(foundRow._id.toString(), insertedRow._id.toString())
test.equal(foundRow.name, "hello world")
test.done()
View
@@ -1,4 +1,7 @@
-var Mongolian = require('../mongolian.js')
+/* Mongolian DeadBeef by Marcello Bastea-Forte - zlib license */
+
+var Mongolian = require('../mongolian')
+
var db,collection
module.exports = {
View
@@ -1,4 +1,7 @@
-var Mongolian = require('../mongolian.js')
+/* Mongolian DeadBeef by Marcello Bastea-Forte - zlib license */
+
+var Mongolian = require('../mongolian')
+
var db,collection
module.exports = {
View
@@ -1,4 +1,7 @@
-var Mongolian = require('../mongolian.js')
+/* Mongolian DeadBeef by Marcello Bastea-Forte - zlib license */
+
+var Mongolian = require('../mongolian')
+
var db,collection
module.exports = {
View
@@ -1,4 +1,7 @@
-var Mongolian = require('../mongolian.js')
+/* Mongolian DeadBeef by Marcello Bastea-Forte - zlib license */
+
+var Mongolian = require('../mongolian')
+
var db,collection
module.exports = {
View
@@ -1,5 +1,8 @@
-var Mongolian = require('../mongolian.js')
-var db,gridfs
+/* Mongolian DeadBeef by Marcello Bastea-Forte - zlib license */
+
+var Mongolian = require('../mongolian')
+
+var db,collection
module.exports = {
"create connection": function(test) {
View
@@ -1,4 +1,6 @@
-var Mongolian = require('../mongolian.js')
+/* Mongolian DeadBeef by Marcello Bastea-Forte - zlib license */
+
+var Mongolian = require('../mongolian')
var db,collection
View
@@ -1,6 +1,8 @@
-var Mongolian = require('../mongolian.js')
+/* Mongolian DeadBeef by Marcello Bastea-Forte - zlib license */
-var db
+var Mongolian = require('../mongolian')
+
+var db,collection
module.exports = {
"create connection": function(test) {

0 comments on commit 31688d6

Please sign in to comment.