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

Commit

Permalink
fixup! feat!: update ipfs for DAG GET API to match [email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Oct 16, 2021
1 parent c7798e3 commit fe5bb34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ipfs-cli/test/dag.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ describe('dag', () => {

const out = await cli(`dag get ${dagPbCid} --output-codec raw --data-enc base16`, { ipfs })

expect(out).to.equal(`dag get cannot print a non-bytes node as "raw"\n`)
expect(out).to.equal('dag get cannot print a non-bytes node as "raw"\n')
})

it('should get a bytes node of a non-bytes block with "raw"', async () => {
Expand Down Expand Up @@ -178,7 +178,7 @@ describe('dag', () => {

ipfs.dag.get.withArgs(dagCborCid, defaultOptions).returns(result)

const out = await cli(`dag get ${dagCborCid} --output-codec dag-cbor`, { ipfs, raw: true })
const out = await cli(`dag get ${dagCborCid} --output-codec dag-cbor`, { ipfs, raw: true })

expect(out).to.deep.equal(Buffer.from('a163666f6f63626172', 'hex'))
})
Expand Down

0 comments on commit fe5bb34

Please sign in to comment.