From b41863171ab61f80db789621c496f6a65b967349 Mon Sep 17 00:00:00 2001 From: Jessica Kerr Date: Fri, 24 Aug 2018 10:25:30 -0500 Subject: [PATCH] Tweak test output --- test/cli/ui/ConsoleMessageClient.test.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/cli/ui/ConsoleMessageClient.test.ts b/test/cli/ui/ConsoleMessageClient.test.ts index 0061ed92..39425d01 100644 --- a/test/cli/ui/ConsoleMessageClient.test.ts +++ b/test/cli/ui/ConsoleMessageClient.test.ts @@ -48,8 +48,7 @@ describe("message formatting", () => { const subject = new ConsoleMessageClient("general", async s => { output = output + s; }, {} as any); await subject.addressChannels({ text: "I am safe", attachments: [suspiciousAttachment] }, "general"); - assert(output.includes("WhereAmI"), "It's OK if it didn't render it in markdown, but it should display the whole attachment"); - process.stdout.write(output); + assert(output.includes("WhereAmI"), "it should display the whole attachment"); }); it("render multi line markdown correct", async () => { @@ -62,7 +61,6 @@ bold text**`; await subject.addressChannels({ text }, "general"); assert(output.includes(`test some bold text`)); - process.stdout.write(output); }); });