| 1 |
var suite |
| 2 |
try { |
| 3 |
suite = require('abstract-leveldown/node_modules/level-supports/test') |
| 4 |
} |
| 5 |
catch(e) { |
| 6 |
suite = require('level-supports/test') |
| 7 |
} |
| 8 |
|
| 9 |
module.exports = function (test, testCommon) { |
| 10 |
test('setUp common', testCommon.setUp) |
| 11 |
|
| 12 |
suite(test, testCommon) |
| 13 |
|
| 14 |
test('manifest has status', function (t) { |
| 15 |
var db = testCommon.factory() |
| 16 |
t.is(db.supports.status, true) |
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
db.open(function (err) { |
| 21 |
t.ifError(err, 'no open error') |
| 22 |
db.close(t.end.bind(t)) |
| 23 |
}) |
| 24 |
}) |
| 25 |
|
| 26 |
test('tearDown', testCommon.tearDown) |
| 27 |
} |