Example for testing the binary headers values

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2019-08-02 11:07:09 -03:00
parent b3a63aa749
commit 772ca2f34f
1 changed files with 8 additions and 0 deletions

View File

@ -188,6 +188,14 @@ describe("HTTP Transport Binding - Version 0.3", () => {
});
});
it("should 'ce-subject' have the right value", () => {
return binary.emit(cloudevent)
.then((response) => {
expect(cloudevent.getSubject())
.to.equal(response.config.headers["ce-subject"]);
});
});
describe("'data' attribute with 'base64' encoding", () => {
it("HTTP Header contains 'ce-datacontentencoding'", () => {
return binary.emit(cebase64)