Fix binary data attribute example

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2019-06-21 16:42:55 -03:00
parent fea87aaee2
commit 365e0871b7
2 changed files with 4 additions and 6 deletions

View File

@ -1,5 +1,3 @@
{
"data":{
"much":"wow"
}
"much":"wow"
}

View File

@ -27,14 +27,14 @@ describe("HTTP Transport Binding Binary Receiver for CloudEvents v0.2", () => {
.to.throw("attributes is null or undefined");
});
it("Throw error when payload is not an object", () => {
it("Throw error when payload is not an object or string", () => {
// setup
var payload = "wow";
var payload = 1.2;
var attributes = {};
// act and assert
expect(receiver.check.bind(receiver, payload, attributes))
.to.throw("payload must be an object");
.to.throw("payload must be an object or a string");
});
it("Throw error when headers has no 'ce-type'", () => {