assert the request payload
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
e07b09251d
commit
1b3922c770
|
@ -36,6 +36,14 @@ describe("HTTP Transport Binding - Version 0.1", () => {
|
|||
.to.equal(contentType);
|
||||
});
|
||||
});
|
||||
|
||||
it("the request should be correct", () => {
|
||||
return httpstructured_0_1.emit(cloudevent)
|
||||
.then(response => {
|
||||
expect(JSON.parse(response.config.data))
|
||||
.to.deep.equal(cloudevent.format());
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue