25 lines
619 B
JavaScript
25 lines
619 B
JavaScript
'use strict'
|
|
|
|
const suite = require('level-supports/test')
|
|
|
|
module.exports = function (test, testCommon) {
|
|
suite(test, testCommon)
|
|
|
|
test('manifest has expected properties', function (t) {
|
|
const db = testCommon.factory()
|
|
|
|
t.is(db.supports.status, true)
|
|
t.is(db.supports.promises, true)
|
|
t.is(db.supports.clear, true)
|
|
t.is(db.supports.getMany, true)
|
|
|
|
testCommon.supports = db.supports
|
|
t.ok(testCommon.supports, 'can be accessed via testCommon')
|
|
|
|
t.ok(db.supports.encodings.utf8, 'supports utf8')
|
|
t.ok(db.supports.encodings.json, 'supports json')
|
|
|
|
db.close(t.end.bind(t))
|
|
})
|
|
}
|