Skip to content

Commit

Permalink
Tidy testing get using LevelUP.
Browse files Browse the repository at this point in the history
See #106.
  • Loading branch information
flatheadmill committed Jan 27, 2014
1 parent e0c0748 commit 01001d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions t/locket/get.t.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ require('proof')(2, function (step, equal, deepEqual) {
var cadence = require('cadence')

var Locket = require('../..')
var levelup = require('levelup')

var tmp = path.join(__dirname, '../tmp')

Expand All @@ -17,7 +18,7 @@ require('proof')(2, function (step, equal, deepEqual) {
step(function () {
rimraf(location, step())
}, function () {
locket = require('levelup')(location, { db: Locket })
locket = levelup(location, { db: Locket })
locket.open(step())
}, [function () {
locket.get('a', step())
Expand All @@ -30,7 +31,7 @@ require('proof')(2, function (step, equal, deepEqual) {
step(function () {
rimraf(location, step())
}, function () {
locket = require('levelup')(location, { db: Locket })
locket = levelup(location, { db: Locket })
locket.open(step())
}, function () {
locket.put('b', JSON.stringify({ value: 1 }), step())
Expand Down

0 comments on commit 01001d5

Please sign in to comment.