parentheses
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
6fec621cac
commit
cb33a8adab
|
@ -31,7 +31,7 @@ describe("HTTP Transport Binding - Version 0.1", () => {
|
||||||
describe("JSON Format", () => {
|
describe("JSON Format", () => {
|
||||||
it("requires '" + contentType + "' Content-Type in header", () => {
|
it("requires '" + contentType + "' Content-Type in header", () => {
|
||||||
return httpstructured01.emit(cloudevent)
|
return httpstructured01.emit(cloudevent)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
expect(response.config.headers["Content-Type"])
|
expect(response.config.headers["Content-Type"])
|
||||||
.to.equal(contentType);
|
.to.equal(contentType);
|
||||||
});
|
});
|
||||||
|
@ -39,7 +39,7 @@ describe("HTTP Transport Binding - Version 0.1", () => {
|
||||||
|
|
||||||
it("the request should be correct", () => {
|
it("the request should be correct", () => {
|
||||||
return httpstructured01.emit(cloudevent)
|
return httpstructured01.emit(cloudevent)
|
||||||
.then(response => {
|
.then((response) => {
|
||||||
expect(JSON.parse(response.config.data))
|
expect(JSON.parse(response.config.data))
|
||||||
.to.deep.equal(cloudevent.format());
|
.to.deep.equal(cloudevent.format());
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue