Skip to content

Commit ae25302

Browse files
committed
fixes buffer test params
1 parent 6b9324a commit ae25302

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

tests/buffer-test.js

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const marbuf = require('buffer!./test-data/200Bytes.txt.block')
2424
module.exports = function (repo) {
2525
describe('chunker: fixed size', function () {
2626
this.timeout(10000)
27+
2728
it('256 Bytes chunks', function (done) {
2829
var counter = 0
2930
fileStream()
@@ -84,10 +85,7 @@ module.exports = function (repo) {
8485
var bs = new BlockService(repo)
8586
var ds = new DAGService(bs)
8687
var buf = smallBuf
87-
importer.import({
88-
buffer: buf,
89-
dagService: ds
90-
}, function (err, stat) {
88+
importer.import(buf, ds, function (err, stat) {
9189
expect(err).to.not.exist
9290
ds.get(stat.Hash, function (err, node) {
9391
expect(err).to.not.exist
@@ -105,11 +103,7 @@ module.exports = function (repo) {
105103
var buf = bigBuf
106104
var bs = new BlockService(repo)
107105
var ds = new DAGService(bs)
108-
importer.import({
109-
buffer: buf,
110-
dagService: ds,
111-
filename: 'Test.txt'
112-
}, function (err, stat) {
106+
importer.import(buf, ds, function (err, stat) {
113107
expect(err).to.not.exist
114108
ds.get(stat.Hash, function (err, node) {
115109
expect(err).to.not.exist

0 commit comments

Comments
 (0)