Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
chore: do not add newlines to object data (#1352)
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain authored and alanshaw committed May 23, 2018
1 parent fe51c47 commit 2e40fb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cli/commands/object/data.js
Expand Up @@ -17,7 +17,7 @@ module.exports = {
throw err
}

print(data.toString())
print(data.toString(), false)
})
}
}
2 changes: 1 addition & 1 deletion test/cli/object.js
Expand Up @@ -60,7 +60,7 @@ describe('object', () => runOnAndOff((thing) => {

it('data', () => {
return ipfs('object data QmZZmY4KCu9r3e7M2Pcn46Fc5qbn6NpzaAGaYb22kbfTqm').then((out) => {
expect(out).to.eql('another\n')
expect(out).to.eql('another')
})
})

Expand Down

0 comments on commit 2e40fb8

Please sign in to comment.