assert the request payload

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2018-11-14 21:36:18 -02:00
parent e07b09251d
commit 1b3922c770
1 changed files with 8 additions and 0 deletions

View File

@ -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());
});
});
});
});
});