UNPKG

mongojs

Version:

Easy to use module that implements the mongo api

9 lines (7 loc) 271 B
var test = require('./tape') var mongojs = require('../') test('db.toString', function (t) { var db = mongojs('mongodb://localhost:27017,localhost:27018/test?replicaSet=foo', ['a']) t.equal(db.toString(), 'test', 'toString should return database name') t.end() })