Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 789d8aa

Browse files
committed
fix: linting
1 parent 490ea61 commit 789d8aa

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/files.spec.js

+4-6
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ describe('.files (the MFS API part)', function () {
160160

161161
it('files.write', (done) => {
162162
ipfs.files
163-
.write('/test-folder/test-file-2.txt', Buffer.from('hello world'), { create: true }, (err) => {
163+
.write('/test-folder/test-file-2.txt', Buffer.from('hello world'), {create: true}, (err) => {
164164
expect(err).to.not.exist()
165165

166166
ipfs.files.read('/test-folder/test-file-2.txt', (err, stream) => {
@@ -256,7 +256,7 @@ describe('.files (the MFS API part)', function () {
256256
})
257257

258258
it('files.rm', (done) => {
259-
ipfs.files.rm('/test-folder', { recursive: true }, done)
259+
ipfs.files.rm('/test-folder', {recursive: true}, done)
260260
})
261261
})
262262

@@ -332,7 +332,7 @@ describe('.files (the MFS API part)', function () {
332332

333333
it('files.write', (done) => {
334334
ipfs.files
335-
.write('/test-folder/test-file-2.txt', Buffer.from('hello world'), { create: true })
335+
.write('/test-folder/test-file-2.txt', Buffer.from('hello world'), {create: true})
336336
.then(() => {
337337
return ipfs.files.read('/test-folder/test-file-2.txt')
338338
})
@@ -398,9 +398,7 @@ describe('.files (the MFS API part)', function () {
398398
})
399399

400400
it('files.read', (done) => {
401-
if (!isNode) {
402-
return done()
403-
}
401+
if (!isNode) { return done() }
404402

405403
ipfs.files.read('/test-folder/test-file')
406404
.then((stream) => {

0 commit comments

Comments
 (0)