From d4fee105973069dcbe88c26edcc35d4affcef8f6 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Mon, 28 Oct 2019 18:43:43 +0100 Subject: [PATCH] docs: comment tests License: MIT Signed-off-by: Marcin Rataj --- test/peer-id.spec.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/peer-id.spec.js b/test/peer-id.spec.js index 962b9f3..1f94454 100644 --- a/test/peer-id.spec.js +++ b/test/peer-id.spec.js @@ -108,6 +108,8 @@ describe('PeerId', () => { }) it('throws on invalid CID value', () => { + // using function code that does not represent valid hash function + // https://github.com/multiformats/js-multihash/blob/b85999d5768bf06f1b0f16b926ef2cb6d9c14265/src/constants.js#L345 const invalidCID = 'QmaozNR7DZHQK1ZcU9p7QdrshMvXqWK6gpu5rmrkPdT3L' expect(() => { PeerId.createFromCID(invalidCID)