mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
15 lines
290 B
JavaScript
Executable File
15 lines
290 B
JavaScript
Executable File
var test = require('./tape');
|
|
var insert = require('./insert');
|
|
|
|
insert('cursor.explain', [{
|
|
hello:'world1'
|
|
},{
|
|
hello:'world2'
|
|
}], function(db, t, done) {
|
|
var cursor = db.a.find();
|
|
cursor.explain(function(err, result) {
|
|
t.equal(result.nscannedObjects, 2);
|
|
done();
|
|
});
|
|
});
|