You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
256 B

var test = require('./tape')
var mongojs = require('../')
test('db.toString', function (t) {
var db = mongojs('mongodb://localhost:50000,localhost:50001/test', ['a'])
t.equal(db.toString(), 'test', 'toString should return database name')
t.end()
})