Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

test that can handle /

  • Loading branch information...
commit cb6f891eae0a4db09301863af0c79b326d0e62b4 1 parent 1c7245f
@dominictarr authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/index.js
View
6 test/index.js
@@ -14,14 +14,14 @@ rm('/tmp/kv_test', function () {
var kv = require('..')('/tmp/kv_test/' + Math.random())
var es = require('event-stream')
- var p = kv.put('hello')
+ var p = kv.put('hello/there') //check that we can handle funny characters
var r = Math.random()
p.write({hello: r})
p.end()
p.on('close', function () {
- var g = kv.get('hello')
+ var g = kv.get('hello/there')
g.on('data', function (data) {
assert.equal(data.hello, r)
passed = true
@@ -30,7 +30,7 @@ rm('/tmp/kv_test', function () {
kv.list()
.pipe(es.writeArray(function (err, ary) {
- assert.deepEqual(ary, ['hello'])
+ assert.deepEqual(ary, ['hello/there'])
}))
})
Please sign in to comment.
Something went wrong with that request. Please try again.