@@ -262,7 +262,7 @@ describe('write', function () {
262
262
} )
263
263
} )
264
264
265
- runTest ( ( { type, path, content} ) => {
265
+ runTest ( ( { type, path, content } ) => {
266
266
it ( `limits how many bytes to write to a file (${ type } )` , ( ) => {
267
267
return mfs . write ( path , content , {
268
268
create : true ,
@@ -276,7 +276,7 @@ describe('write', function () {
276
276
} )
277
277
} )
278
278
279
- runTest ( ( { type, path, content, contentSize} ) => {
279
+ runTest ( ( { type, path, content, contentSize } ) => {
280
280
it ( `overwrites start of a file without truncating (${ type } )` , ( ) => {
281
281
const newContent = Buffer . from ( 'Goodbye world' )
282
282
@@ -294,7 +294,7 @@ describe('write', function () {
294
294
} )
295
295
} )
296
296
297
- runTest ( ( { type, path, content, contentSize} ) => {
297
+ runTest ( ( { type, path, content, contentSize } ) => {
298
298
it ( `pads the start of a new file when an offset is specified (${ type } )` , ( ) => {
299
299
const offset = 10
300
300
@@ -316,7 +316,7 @@ describe('write', function () {
316
316
} )
317
317
} )
318
318
319
- runTest ( ( { type, path, content, contentSize} ) => {
319
+ runTest ( ( { type, path, content, contentSize } ) => {
320
320
it ( `expands a file when an offset is specified (${ type } )` , ( ) => {
321
321
const offset = contentSize - 1
322
322
const newContent = Buffer . from ( 'Oh hai!' )
@@ -336,7 +336,7 @@ describe('write', function () {
336
336
} )
337
337
} )
338
338
339
- runTest ( ( { type, path, content, contentSize} ) => {
339
+ runTest ( ( { type, path, content, contentSize } ) => {
340
340
it ( `expands a file when an offset is specified and the offset is longer than the file (${ type } )` , ( ) => {
341
341
const offset = contentSize + 5
342
342
const newContent = Buffer . from ( 'Oh hai!' )
@@ -358,7 +358,7 @@ describe('write', function () {
358
358
} )
359
359
} )
360
360
361
- runTest ( ( { type, path, content} ) => {
361
+ runTest ( ( { type, path, content } ) => {
362
362
it ( `truncates a file after writing (${ type } )` , ( ) => {
363
363
const newContent = Buffer . from ( 'Oh hai!' )
364
364
@@ -375,7 +375,7 @@ describe('write', function () {
375
375
} )
376
376
} )
377
377
378
- runTest ( ( { type, path, content} ) => {
378
+ runTest ( ( { type, path, content } ) => {
379
379
it ( `truncates a file after writing with a stream (${ type } )` , ( ) => {
380
380
const newContent = Buffer . from ( 'Oh hai!' )
381
381
const stream = values ( [ newContent ] )
@@ -393,7 +393,7 @@ describe('write', function () {
393
393
} )
394
394
} )
395
395
396
- runTest ( ( { type, path, content} ) => {
396
+ runTest ( ( { type, path, content } ) => {
397
397
it ( `truncates a file after writing with a stream with an offset (${ type } )` , ( ) => {
398
398
const offset = 100
399
399
const newContent = Buffer . from ( 'Oh hai!' )
@@ -411,7 +411,7 @@ describe('write', function () {
411
411
} )
412
412
} )
413
413
414
- runTest ( ( { type, path, content} ) => {
414
+ runTest ( ( { type, path, content } ) => {
415
415
it ( `writes a file with raw blocks for newly created leaf nodes (${ type } )` , ( ) => {
416
416
return mfs . write ( path , content , {
417
417
create : true ,
@@ -439,7 +439,7 @@ describe('write', function () {
439
439
}
440
440
441
441
return Promise . all (
442
- files . map ( ( { name, source} ) => mfs . write ( `/concurrent/${ name } ` , source , {
442
+ files . map ( ( { name, source } ) => mfs . write ( `/concurrent/${ name } ` , source , {
443
443
create : true ,
444
444
parents : true
445
445
} ) )
0 commit comments