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

Commit c277ea0

Browse files
committed
chore: do not add newlines to object data
1 parent 3820be0 commit c277ea0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/cli/commands/object/data.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = {
1717
throw err
1818
}
1919

20-
print(data.toString())
20+
print(data.toString(), false)
2121
})
2222
}
2323
}

test/cli/object.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('object', () => runOnAndOff((thing) => {
3636
})
3737
})
3838

39-
it('put', () => {
39+
it.only('put', () => {
4040
return ipfs('object put test/fixtures/test-data/node.json').then((out) => {
4141
expect(out).to.eql(
4242
'added QmZZmY4KCu9r3e7M2Pcn46Fc5qbn6NpzaAGaYb22kbfTqm\n'
@@ -60,7 +60,7 @@ describe('object', () => runOnAndOff((thing) => {
6060

6161
it('data', () => {
6262
return ipfs('object data QmZZmY4KCu9r3e7M2Pcn46Fc5qbn6NpzaAGaYb22kbfTqm').then((out) => {
63-
expect(out).to.eql('another\n')
63+
expect(out).to.eql('another')
6464
})
6565
})
6666

0 commit comments

Comments
 (0)