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.
14 lines
352 B
14 lines
352 B
'use strict'
|
|
|
|
var location = require('./location')
|
|
|
|
module.exports = function (test, level) {
|
|
test('test db open and use, level(location, options, cb) force error', function (t) {
|
|
level(location, { errorIfExists: true }, function (err, db) {
|
|
t.ok(err, 'got error opening existing db')
|
|
t.notOk(db, 'no db')
|
|
t.end()
|
|
})
|
|
})
|
|
}
|