From 23b0648a07cf157c3196cd55c42ec876761336cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabio=20Jos=C3=A9?= Date: Mon, 4 Nov 2019 09:45:25 -0300 Subject: [PATCH] Exporting the binary receiber 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 ++++---- v1/index.js | 6 ++++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/test/sdk_test.js b/test/sdk_test.js index 9ab5e54..ac00741 100644 --- a/test/sdk_test.js +++ b/test/sdk_test.js @@ -93,10 +93,10 @@ describe("The SDK Requirements", () => { expect(v1).to.have.property("BinaryHTTPEmitter"); }); - // it("should exports 'BinaryHTTPReceiver'", () => { - // expect(v1).to.have.property("BinaryHTTPReceiver"); - // }); - // + it("should exports 'BinaryHTTPReceiver'", () => { + expect(v1).to.have.property("BinaryHTTPReceiver"); + }); + // it("should exports 'HTTPUnmarshaller'", () => { // expect(v1).to.have.property("HTTPUnmarshaller"); // }); diff --git a/v1/index.js b/v1/index.js index 4e3c08e..a2c7c9a 100644 --- a/v1/index.js +++ b/v1/index.js @@ -1,12 +1,17 @@ const Cloudevent = require("../lib/cloudevent.js"); const Spec = require("../lib/specs/spec_1.js"); + const StructuredHTTPEmitter = require("../lib/bindings/http/emitter_structured.js"); + const BinaryHTTPEmitter = require("../lib/bindings/http/emitter_binary_1.js"); const StructuredHTTPReceiver = require("../lib/bindings/http/receiver_structured_1.js"); +const BinaryHTTPReceiver = + require("../lib/bindings/http/receiver_binary_1.js"); + function event() { return new Cloudevent(Spec); } @@ -16,5 +21,6 @@ module.exports = { StructuredHTTPEmitter, BinaryHTTPEmitter, StructuredHTTPReceiver, + BinaryHTTPReceiver, event };