UNPKG

demos

Version:

15 lines (14 loc) 338 B
var assert = require('assert'); var insert = require('./insert'); insert([{ hello:'world', another:'value' }], function(db, done) { db.a.find({}, {another:1}, function(err, docs) { assert.ok(!err); assert.equal(docs.length, 1); assert.equal(docs[0].hello, undefined); assert.equal(docs[0].another, 'value'); done(); }); });