fixup: correct comments

Signed-off-by: Lance Ball <lball@redhat.com>
This commit is contained in:
Lance Ball 2021-04-05 10:24:27 -04:00
parent ef453b0486
commit b4090cd4bf
No known key found for this signature in database
GPG Key ID: 0D7C787CAE37ED3F
1 changed files with 1 additions and 2 deletions

View File

@ -79,10 +79,9 @@ describe("emitterFor() defaults", () => {
it("Supports HTTP binding, structured mode", () => {
function transport(message: Message): Promise<unknown> {
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();
}