1.0.0 • Published 9 years ago
mocky-db v1.0.0
Mocky
Mocky is a simple way to use mongodb in test without mongodb.
Usage:
var db = require('mocky-db');
var collection = db.collection('foobars');
collection.insert([{ _id: '1', foo: 'bar' }], function() {});
collection.findOne({ _id: '1' }, function(err, doc) {
// doc is { _id: '1', foo: 'bar' }
});
1.0.0
9 years ago