diff --git a/src/lib/waku_message/index.spec.ts b/src/lib/waku_message/index.spec.ts index 84084b78af..2403de9fb3 100644 --- a/src/lib/waku_message/index.spec.ts +++ b/src/lib/waku_message/index.spec.ts @@ -83,7 +83,7 @@ describe("Waku Message: Browser & Node", function () { await fc.assert( fc.asyncProperty( fc.uint8Array({ minLength: 1 }), - fc.uint8Array({ minLength: 32, maxLength: 32 }), + fc.uint8Array({ min: 1, minLength: 32, maxLength: 32 }), async (payload, key) => { const msg = await WakuMessage.fromBytes(payload, TestContentTopic, { symKey: key, @@ -102,8 +102,8 @@ describe("Waku Message: Browser & Node", function () { await fc.assert( fc.asyncProperty( fc.uint8Array({ minLength: 1 }), - fc.uint8Array({ minLength: 32, maxLength: 32 }), - fc.uint8Array({ minLength: 32, maxLength: 32 }), + fc.uint8Array({ min: 1, minLength: 32, maxLength: 32 }), + fc.uint8Array({ min: 1, minLength: 32, maxLength: 32 }), async (payload, sigPrivKey, symKey) => { const sigPubKey = getPublicKey(sigPrivKey);