Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
[fix test] remove references to write-stream in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrugzz authored and ralphtheninja committed Mar 10, 2015
1 parent a712e62 commit 616da29
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 580 deletions.
68 changes: 0 additions & 68 deletions test/copy-test.js

This file was deleted.

45 changes: 0 additions & 45 deletions test/encoding-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,51 +78,6 @@ buster.testCase('Encoding', {
})
})
}
, 'test write-stream encoding': function (done) {
this.openTestDatabase({ encoding: 'json' }, function (db) {
var ws = db.createWriteStream({
keyEncoding : 'utf8',
valueEncoding : 'binary'
})
ws.on('close', function () {
db.get('foo', {
keyEncoding : 'utf8',
valueEncoding : 'binary'
}, function (err, val) {
refute(err)
assert.equals(val.toString(), '\u0001\u0002\u0003')
db.close(done)
})
})
ws.write({ key : 'foo', value : new Buffer([1, 2, 3]) })
ws.end()
})
}
, 'test write-stream chunk encoding': function (done) {
this.openTestDatabase({ encoding: 'json' }, function (db) {
var ws = db.createWriteStream({
keyEncoding : 'utf8',
valueEncoding : 'binary'
})
ws.on('close', function () {
db.get(new Buffer([1, 2, 3]), {
keyEncoding : 'binary',
valueEncoding : 'json'
}, function (err, val) {
refute(err)
assert.equals(val.some, 'json')
db.close(done)
})
})
ws.write({
key : new Buffer([1, 2, 3]),
value : { some : 'json' },
keyEncoding : 'binary',
valueEncoding : 'json'
})
ws.end()
})
}
, 'test batch op encoding': function (done) {
this.openTestDatabase({ encoding: 'json' }, function (db) {
db.batch([
Expand Down
Loading

0 comments on commit 616da29

Please sign in to comment.