Skip to content

Commit

Permalink
style(json-pack): 💄 run Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Mar 12, 2024
1 parent 41ba07d commit 1ff8765
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/json-pack/json/__tests__/JsonEncoderDag.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ describe('Cid', () => {
}

const encoder = new IpfsEncoder(writer);

test('can encode a CID as object key', () => {
const data = {id: new CID('QmXn5v3z')};
const encoded = encoder.encode(data);
const json = Buffer.from(encoded).toString();
expect(json).toBe('{"id":{"/":"QmXn5v3z"}}');
});

test('can encode a CID in array', () => {
const data = ['a', new CID('b'), 'c'];
const encoded = encoder.encode(data);
Expand Down

0 comments on commit 1ff8765

Please sign in to comment.