Skip to content

Commit

Permalink
remove hyperdown support
Browse files Browse the repository at this point in the history
  • Loading branch information
dominictarr committed Apr 9, 2017
1 parent ddc6e4d commit 32557b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"dependencies": {
"level": "^1.4.0",
"level-js": "~2.1.6",
"levelup": "~1.1.1",
"leveldown": "^1.5.3",
"levelup": "^1.3.3",
"memdown": "~1.0.0",
"mkdirp": "~0.5.1",
"osenv": "~0.1.1",
Expand All @@ -21,8 +22,7 @@
"leveldown": "^1.2.2"
},
"devDependencies": {
"tape": "~3.0.0",
"leveldown-hyper": "~1.0.0"
"tape": "~3.0.0"
},
"scripts": {
"test": "set -e; for t in test/*.js; do node $t; done"
Expand All @@ -41,3 +41,4 @@
"files": "test/*.js"
}
}

17 changes: 1 addition & 16 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
var level = require('../')()
var test = require('tape')
var hyper = require('leveldown-hyper')

test('simple', function (t) {
var db = level('level-test', {encoding: 'json'})
Expand Down Expand Up @@ -40,19 +39,5 @@ test('options (valueEncoding: json)', function (t) {
})
})

test('custom backend for levelup', function (t) {
var db = level('level-test3', { db: hyper })
var key = 'foo'
var value = 'bar'

db.put(key, value, function (err) {
t.notOk(err)
db.get(key, function (err, _value) {
t.equal(_value, value)
db.db.liveBackup('baz', function (err) {
t.notOk(err, 'liveBackup worked')
t.end()
})
})
})
})

0 comments on commit 32557b4

Please sign in to comment.