From 43c6bfe9dc8d3964313df1ba35f1ad06fc6e9973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabio=20Jos=C3=A9?= Date: Mon, 4 Nov 2019 10:07:02 -0300 Subject: [PATCH] Exporting the http unmarshaller spec 1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabio José --- test/sdk_test.js | 6 +++--- v1/index.js | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/test/sdk_test.js b/test/sdk_test.js index ac00741..b61f7fd 100644 --- a/test/sdk_test.js +++ b/test/sdk_test.js @@ -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"); diff --git a/v1/index.js b/v1/index.js index a2c7c9a..b7cce2e 100644 --- a/v1/index.js +++ b/v1/index.js @@ -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 };