fix: Resolve TypeScript errors
Signed-off-by: Hermes Agent <hermes@nosuchhost>
This commit is contained in:
17
client/node_modules/level-packager/abstract/destroy-test.js
generated
vendored
Normal file
17
client/node_modules/level-packager/abstract/destroy-test.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
'use strict'
|
||||
|
||||
var fs = require('fs')
|
||||
var path = require('path')
|
||||
var location = require('./location')
|
||||
|
||||
module.exports = function (test, level) {
|
||||
test('test destroy', function (t) {
|
||||
t.plan(4)
|
||||
t.ok(fs.statSync(location).isDirectory(), 'sanity check, directory exists')
|
||||
t.ok(fs.existsSync(path.join(location, 'CURRENT')), 'sanity check, CURRENT exists')
|
||||
level.destroy(location, function (err) {
|
||||
t.notOk(err, 'no error')
|
||||
t.notOk(fs.existsSync(path.join(location, 'CURRENT')), 'db gone (mostly)')
|
||||
})
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user