UNPKG

mongojs

Version:

Easy to use module that implements the mongo api

12 lines (10 loc) 247 B
var test = require('./tape') var mongojs = require('../index') var db = mongojs('test', ['a', 'b']) test('simple', function (t) { db.a.find(function (err, docs) { t.error(err) t.equal(docs.length, 0) db.close(t.end.bind(t)) }) })