UNPKG

mongojs

Version:

Easy to use module that implements the mongo api

12 lines (9 loc) 228 B
var test = require('tape') var mongojs = require('../') test('close unopened db', function (t) { var db = mongojs('test', ['a']) db.close(function (err) { t.error(err, 'should close without error') t.end() }) })