From d79e935c4d0ba11b6eb8ce3d9cea1959b396c75b Mon Sep 17 00:00:00 2001 From: achingbrain Date: Mon, 14 May 2018 11:44:40 +0100 Subject: [PATCH] chore: do not add newlines to object data --- src/cli/commands/object/data.js | 2 +- test/cli/object.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cli/commands/object/data.js b/src/cli/commands/object/data.js index d356e1c6c1..f47cad4035 100644 --- a/src/cli/commands/object/data.js +++ b/src/cli/commands/object/data.js @@ -17,7 +17,7 @@ module.exports = { throw err } - print(data.toString()) + print(data.toString(), false) }) } } diff --git a/test/cli/object.js b/test/cli/object.js index eb7aa9e189..4c69f7b770 100644 --- a/test/cli/object.js +++ b/test/cli/object.js @@ -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') }) })