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.

17 lines
506 B

module.exports.args = function (leveldown, test) {
test('test database creation no-arg throws', function (t) {
t.throws(
leveldown
, { name: 'Error', message: 'constructor requires at least a location argument' }
, 'no-arg leveldown() throws'
)
t.end()
})
test('test database open no-arg throws', function (t) {
var db = leveldown('foo')
t.ok(db, 'database object returned')
t.ok(typeof db.open === 'function', 'open() function exists')
t.end()
})
}