|
|
@ -2,11 +2,11 @@ var insert = require('./insert') |
|
|
|
|
|
|
|
insert('runCommand', [{ |
|
|
|
hello: "world" |
|
|
|
},{ |
|
|
|
}, { |
|
|
|
hello: "world2" |
|
|
|
},{ |
|
|
|
}, { |
|
|
|
hello: "world3" |
|
|
|
},{ |
|
|
|
}, { |
|
|
|
hello: "world" |
|
|
|
}], function (db, t, done) { |
|
|
|
db.runCommand({count: "a", query: {}}, function (err, res) { |
|
|
@ -18,7 +18,7 @@ insert('runCommand', [{ |
|
|
|
db.runCommand({distinct: 'a', key: "hello", query: {hello: "world"}}, function (err, docs) { |
|
|
|
t.equal(docs.values.length, 1) |
|
|
|
db.runCommand("ping", function (err, res) { |
|
|
|
t.equal(res.ok,1) |
|
|
|
t.equal(res.ok, 1) |
|
|
|
db.a.runCommand("count", function (err, res) { |
|
|
|
t.equal(res.n, 4) |
|
|
|
done() |
|
|
|