Happy path
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
cc41f0e015
commit
396e0f94b9
|
@ -212,7 +212,6 @@ describe("HTTP Transport Binding - Version 0.2", () => {
|
||||||
// setup
|
// setup
|
||||||
var payload = {};
|
var payload = {};
|
||||||
var attributes = {
|
var attributes = {
|
||||||
//"ce-type" : "type",
|
|
||||||
"ce-specversion" : "specversion",
|
"ce-specversion" : "specversion",
|
||||||
"ce-source" : "source",
|
"ce-source" : "source",
|
||||||
"ce-id" : "id"
|
"ce-id" : "id"
|
||||||
|
@ -264,6 +263,25 @@ describe("HTTP Transport Binding - Version 0.2", () => {
|
||||||
expect(httpbinary02.check.bind(httpbinary02, payload, attributes))
|
expect(httpbinary02.check.bind(httpbinary02, payload, attributes))
|
||||||
.to.throw("header 'ce-id' not found");
|
.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", () => {
|
describe("JSON Format", () => {
|
||||||
|
|
Loading…
Reference in New Issue