From 2467023d99d179aff7a734a051a48f4cf7aee8a9 Mon Sep 17 00:00:00 2001 From: Naomi Plasterer Date: Fri, 29 Sep 2023 17:48:28 -0700 Subject: [PATCH] remove the console statements from the test --- example/src/tests.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/example/src/tests.ts b/example/src/tests.ts index c405be284..e0ed091c7 100644 --- a/example/src/tests.ts +++ b/example/src/tests.ts @@ -504,7 +504,6 @@ test("can stream all messages", async () => { // Record message stream across all conversations const allMessages: DecodedMessage[] = []; await alix.conversations.streamAllMessages(async (message) => { - console.log(`Pushing message ${message.id}`) allMessages.push(message); }); @@ -513,12 +512,10 @@ test("can stream all messages", async () => { await delayToPropogate(); for (let i = 0; i < 5; i++) { - console.log(`Message ${i}`) await boConvo.send({ text: `Message ${i}` }); await delayToPropogate(); } if (allMessages.length !== 5) { - console.log("Failing here at 5") throw Error("Unexpected all messages count " + allMessages.length); } @@ -527,12 +524,10 @@ test("can stream all messages", async () => { const caroConvo = await caro.conversations.newConversation(alix.address); await delayToPropogate(); for (let i = 0; i < 5; i++) { - console.log(`Message2 ${i}`) await caroConvo.send({ text: `Message ${i}` }); await delayToPropogate(); } if (allMessages.length !== 10) { - console.log("Failing here at 10") throw Error("Unexpected all messages count " + allMessages.length); } @@ -543,12 +538,10 @@ test("can stream all messages", async () => { }); for (let i = 0; i < 5; i++) { - console.log(`Message3 ${i}`) await boConvo.send({ text: `Message ${i}` }); await delayToPropogate(); } if (allMessages.length <= 10) { - console.log(`Failing here at 15 ${allMessages.length}`) throw Error("Unexpected all messages count " + allMessages.length); }