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

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
dryajov committed Oct 2, 2017
1 parent 490ea61 commit 789d8aa
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/files.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ describe('.files (the MFS API part)', function () {

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

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

it('files.rm', (done) => {
ipfs.files.rm('/test-folder', { recursive: true }, done)
ipfs.files.rm('/test-folder', {recursive: true}, done)
})
})

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

it('files.write', (done) => {
ipfs.files
.write('/test-folder/test-file-2.txt', Buffer.from('hello world'), { create: true })
.write('/test-folder/test-file-2.txt', Buffer.from('hello world'), {create: true})
.then(() => {
return ipfs.files.read('/test-folder/test-file-2.txt')
})
Expand Down Expand Up @@ -398,9 +398,7 @@ describe('.files (the MFS API part)', function () {
})

it('files.read', (done) => {
if (!isNode) {
return done()
}
if (!isNode) { return done() }

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

0 comments on commit 789d8aa

Please sign in to comment.