diff --git a/test/sdk_test.js b/test/sdk_test.js index f429ac3..0ee3c0e 100644 --- a/test/sdk_test.js +++ b/test/sdk_test.js @@ -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"); }); diff --git a/v02/index.js b/v02/index.js index 1c56461..fe0e5d8 100644 --- a/v02/index.js +++ b/v02/index.js @@ -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 }; diff --git a/v03/index.js b/v03/index.js index f6437e0..614b8af 100644 --- a/v03/index.js +++ b/v03/index.js @@ -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 };