node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org ยป

mongo-collection-fake

Mongo-Collection FAKE

a no-op test double for npm.im/mongo-collection, a helper for accessing kissjs/node-mongoskin models

Build Status
NPM

API

var mc = require('mc-fake'),
    col = mc(host, db, colName);

col.find(..., cb);
col.findOne(..., cb);
col.save(..., cb);

var readStream = mc.stream(...);