Skip to content

Commit 1b3922c

Browse files
committed
assert the request payload
Signed-off-by: Fabio José <[email protected]>
1 parent e07b092 commit 1b3922c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/http_binding_0_1.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ describe("HTTP Transport Binding - Version 0.1", () => {
3636
.to.equal(contentType);
3737
});
3838
});
39+
40+
it("the request should be correct", () => {
41+
return httpstructured_0_1.emit(cloudevent)
42+
.then(response => {
43+
expect(JSON.parse(response.config.data))
44+
.to.deep.equal(cloudevent.format());
45+
});
46+
});
3947
});
4048
});
4149
});

0 commit comments

Comments
 (0)