File tree 1 file changed +3
-9
lines changed
1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ const marbuf = require('buffer!./test-data/200Bytes.txt.block')
24
24
module . exports = function ( repo ) {
25
25
describe ( 'chunker: fixed size' , function ( ) {
26
26
this . timeout ( 10000 )
27
+
27
28
it ( '256 Bytes chunks' , function ( done ) {
28
29
var counter = 0
29
30
fileStream ( )
@@ -84,10 +85,7 @@ module.exports = function (repo) {
84
85
var bs = new BlockService ( repo )
85
86
var ds = new DAGService ( bs )
86
87
var buf = smallBuf
87
- importer . import ( {
88
- buffer : buf ,
89
- dagService : ds
90
- } , function ( err , stat ) {
88
+ importer . import ( buf , ds , function ( err , stat ) {
91
89
expect ( err ) . to . not . exist
92
90
ds . get ( stat . Hash , function ( err , node ) {
93
91
expect ( err ) . to . not . exist
@@ -105,11 +103,7 @@ module.exports = function (repo) {
105
103
var buf = bigBuf
106
104
var bs = new BlockService ( repo )
107
105
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 ) {
113
107
expect ( err ) . to . not . exist
114
108
ds . get ( stat . Hash , function ( err , node ) {
115
109
expect ( err ) . to . not . exist
You can’t perform that action at this time.
0 commit comments