From 396e0f94b9085b72b2c5eb01d78e01b0da7acaaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabio=20Jos=C3=A9?= Date: Tue, 11 Jun 2019 20:56:59 -0300 Subject: [PATCH] Happy path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabio José --- test/http_binding_0_2.js | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/test/http_binding_0_2.js b/test/http_binding_0_2.js index 7471bc3..2125117 100644 --- a/test/http_binding_0_2.js +++ b/test/http_binding_0_2.js @@ -212,7 +212,6 @@ describe("HTTP Transport Binding - Version 0.2", () => { // setup var payload = {}; var attributes = { - //"ce-type" : "type", "ce-specversion" : "specversion", "ce-source" : "source", "ce-id" : "id" @@ -264,6 +263,25 @@ describe("HTTP Transport Binding - Version 0.2", () => { expect(httpbinary02.check.bind(httpbinary02, payload, attributes)) .to.throw("header 'ce-id' not found"); }); + + it("No error when all required headers are in place", () => { + // setup + var payload = {}; + var attributes = { + "ce-type" : "type", + "ce-specversion" : "specversion", + "ce-source" : "source", + "ce-id" : "id" + }; + + // act and assert + expect(httpbinary02.check.bind(httpbinary02, payload, attributes)) + .to.not.throw(); + }); + }); + + describe("Parse", () => { + }); describe("JSON Format", () => {