Exporting the HTTPUnmarshaller

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2019-08-05 09:22:15 -03:00
parent ca6c7942c0
commit d399e5abc3
3 changed files with 14 additions and 0 deletions

View File

@ -28,6 +28,10 @@ describe("The SDK Requirements", () => {
expect(v02).to.have.property("BinaryHTTPReceiver");
});
it("should exports 'HTTPUnmarshaller'", () => {
expect(v02).to.have.property("HTTPUnmarshaller");
});
it("should exports 'event'", () => {
expect(v02).to.have.property("event");
});
@ -58,6 +62,10 @@ describe("The SDK Requirements", () => {
expect(v03).to.have.property("BinaryHTTPReceiver");
});
it("should exports 'HTTPUnmarshaller'", () => {
expect(v03).to.have.property("HTTPUnmarshaller");
});
it("should exports 'event'", () => {
expect(v03).to.have.property("event");
});

View File

@ -8,6 +8,8 @@ const StructuredHTTPReceiver =
const BinaryHTTPReceiver =
require("../lib/bindings/http/receiver_binary_0_2.js");
const HTTPUnmarshaller = require("../lib/bindings/http/unmarshaller_0_3.js");
function event() {
return new Cloudevent(Spec);
}
@ -18,5 +20,6 @@ module.exports = {
StructuredHTTPReceiver,
BinaryHTTPEmitter : HTTPBinary02,
BinaryHTTPReceiver,
HTTPUnmarshaller,
event
};

View File

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