Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const test = require('tape')
const tempy = require('tempy')
const leveldown = require('..')
const suite = require('abstract-leveldown/test')
module.exports = suite.common({
test: test,
factory: function () {
return leveldown(tempy.directory())
},
// Opt-in to new clear() tests
clear: true
})
'use strict'
var test = require('tape')
var uuid = require('uuid/v4')
var suite = require('abstract-leveldown/test')
var leveljs = require('..')
// Test feature detection
require('./support-test')(leveljs, test)
var testCommon = suite.common({
test: test,
factory: function (opts) {
return leveljs(uuid(), opts)
},
// Unsupported features
createIfMissing: false,
errorIfExists: false,
seek: false,
// Support of buffer keys depends on environment
bufferKeys: leveljs(uuid()).supports.bufferKeys,
// Opt-in to new clear() tests
clear: true
})