You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
268 B
15 lines
268 B
var assert = require('assert');
|
|
var insert = require('./insert');
|
|
|
|
insert([{
|
|
hello:'world1'
|
|
},{
|
|
hello:'world2'
|
|
}], function(db, done) {
|
|
var cursor = db.a.find();
|
|
cursor.explain(function(err, result) {
|
|
assert.equal(result.nscannedObjects, 2);
|
|
done();
|
|
});
|
|
});
|
|
|
|
|