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.
 

13 lines
259 B

var assert = require('assert');
var insert = require('./insert');
insert([{
hello:'world'
}], function(db, done) {
db.a.find(function(err, docs) {
assert.ok(!err);
assert.equal(docs.length, 1);
assert.equal(docs[0].hello, 'world');
done();
});
});