From d399e5abc3359502a424b74a878ed3cf851872f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabio=20Jos=C3=A9?= Date: Mon, 5 Aug 2019 09:22:15 -0300 Subject: [PATCH] Exporting the HTTPUnmarshaller MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabio José --- test/sdk_test.js | 8 ++++++++ v02/index.js | 3 +++ v03/index.js | 3 +++ 3 files changed, 14 insertions(+) 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 };