Skip to content

Commit e8c890d

Browse files
committed
squash: update test to fail
Signed-off-by: Lucas Holmquist <[email protected]>
1 parent a7e0aa0 commit e8c890d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/integration/http_emitter_test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import nock from "nock";
44
import CONSTANTS from "../../src/constants";
55

66
const DEFAULT_CE_CONTENT_TYPE = CONSTANTS.DEFAULT_CE_CONTENT_TYPE;
7+
const DEFAULT_CONTENT_TYPE = CONSTANTS.DEFAULT_CONTENT_TYPE;
78

89
import { CloudEvent, Version, Emitter, Protocol, headersFor } from "../../src";
910
import { AxiosResponse } from "axios";
@@ -55,6 +56,7 @@ describe("HTTP Transport Binding Emitter for CloudEvents", () => {
5556
.send(event)
5657
.then((response: AxiosResponse) => {
5758
// A binary message will have a ce-id header
59+
expect(response.data["content-type"]).to.equal(DEFAULT_CONTENT_TYPE);
5860
expect(response.data[CONSTANTS.CE_HEADERS.ID]).to.equal(event.id);
5961
expect(response.data[CONSTANTS.CE_HEADERS.SPEC_VERSION]).to.equal(Version.V1);
6062
// A binary message will have a request body for the data

0 commit comments

Comments
 (0)