From b4090cd4bfc5a633b4b4ecea0ed18f4b9da1c24f Mon Sep 17 00:00:00 2001 From: Lance Ball Date: Mon, 5 Apr 2021 10:24:27 -0400 Subject: [PATCH] fixup: correct comments Signed-off-by: Lance Ball --- test/integration/emitter_factory_test.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/integration/emitter_factory_test.ts b/test/integration/emitter_factory_test.ts index e251055..3de763b 100644 --- a/test/integration/emitter_factory_test.ts +++ b/test/integration/emitter_factory_test.ts @@ -79,10 +79,9 @@ describe("emitterFor() defaults", () => { it("Supports HTTP binding, structured mode", () => { function transport(message: Message): Promise { console.error(message); - // A binary message will have the source attribute as a header + // A structured message will have the application/cloudevents+json header expect(message.headers["content-type"]).to.equal(CONSTANTS.DEFAULT_CE_CONTENT_TYPE); const body = JSON.parse(message.body as string); - /* @ts-ignore */ expect(body.id).to.equal("1234"); return Promise.resolve(); }