diff --git a/test/sdk_test.js b/test/sdk_test.js index 8a09540..f429ac3 100644 --- a/test/sdk_test.js +++ b/test/sdk_test.js @@ -42,18 +42,21 @@ describe("The SDK Requirements", () => { expect(v03).to.have.property("Spec"); }); - it("should exports 'StructuredHTTPEmitter'", () => { expect(v03).to.have.property("StructuredHTTPEmitter"); }); - // StructuredHTTPReceiver + it("should exports 'StructuredHTTPReceiver'", () => { + expect(v03).to.have.property("StructuredHTTPReceiver"); + }); it("should exports 'BinaryHTTPEmitter'", () => { expect(v03).to.have.property("BinaryHTTPEmitter"); }); - // BinaryHTTPReceiver + it("should exports 'BinaryHTTPReceiver'", () => { + expect(v03).to.have.property("BinaryHTTPReceiver"); + }); it("should exports 'event'", () => { expect(v03).to.have.property("event"); diff --git a/v03/index.js b/v03/index.js index 6012245..f6437e0 100644 --- a/v03/index.js +++ b/v03/index.js @@ -4,6 +4,12 @@ const StructuredHTTPEmitter = require("../lib/bindings/http/emitter_structured.js"); const BinaryHTTPEmitter = require("../lib/bindings/http/emitter_binary_0_3.js"); +const StructuredHTTPReceiver = + require("../lib/bindings/http/receiver_structured_0_3.js"); + +const BinaryHTTPReceiver = + require("../lib/bindings/http/receiver_binary_0_3.js"); + function event() { return new Cloudevent(Spec); } @@ -11,6 +17,8 @@ function event() { module.exports = { Spec, StructuredHTTPEmitter, + StructuredHTTPReceiver, BinaryHTTPEmitter, + BinaryHTTPReceiver, event };