Exporting the http unmarshaller spec 1.0

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2019-11-04 10:07:02 -03:00
parent 68aaf48ba7
commit 43c6bfe9dc
2 changed files with 6 additions and 3 deletions

View File

@ -97,9 +97,9 @@ describe("The SDK Requirements", () => {
expect(v1).to.have.property("BinaryHTTPReceiver");
});
// it("should exports 'HTTPUnmarshaller'", () => {
// expect(v1).to.have.property("HTTPUnmarshaller");
// });
it("should exports 'HTTPUnmarshaller'", () => {
expect(v1).to.have.property("HTTPUnmarshaller");
});
it("should exports 'event'", () => {
expect(v1).to.have.property("event");

View File

@ -12,6 +12,8 @@ const StructuredHTTPReceiver =
const BinaryHTTPReceiver =
require("../lib/bindings/http/receiver_binary_1.js");
const HTTPUnmarshaller = require("../lib/bindings/http/unmarshaller_1.js");
function event() {
return new Cloudevent(Spec);
}
@ -22,5 +24,6 @@ module.exports = {
BinaryHTTPEmitter,
StructuredHTTPReceiver,
BinaryHTTPReceiver,
HTTPUnmarshaller,
event
};