diff --git a/test/http_binding_0_1.js b/test/http_binding_0_1.js index fdbf0cf..4b34965 100644 --- a/test/http_binding_0_1.js +++ b/test/http_binding_0_1.js @@ -36,6 +36,14 @@ describe("HTTP Transport Binding - Version 0.1", () => { .to.equal(contentType); }); }); + + it("the request should be correct", () => { + return httpstructured_0_1.emit(cloudevent) + .then(response => { + expect(JSON.parse(response.config.data)) + .to.deep.equal(cloudevent.format()); + }); + }); }); }); });