Happy path

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2019-06-11 20:56:59 -03:00
parent cc41f0e015
commit 396e0f94b9
1 changed files with 19 additions and 1 deletions

View File

@ -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", () => {