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

chore: do not add newlines to object data #1352

Merged
merged 1 commit into from
May 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cli/commands/object/data.js
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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