From 01001d5c25bbf190851c36f1568d2a7c243c70f3 Mon Sep 17 00:00:00 2001 From: Alan Gutierrez Date: Sun, 26 Jan 2014 17:51:07 -0800 Subject: [PATCH] Tidy testing get using LevelUP. See #106. --- t/locket/get.t.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/t/locket/get.t.js b/t/locket/get.t.js index 7209e01..cb0ffde 100755 --- a/t/locket/get.t.js +++ b/t/locket/get.t.js @@ -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') @@ -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()) @@ -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())