diff --git a/test/sdk_test.js b/test/sdk_test.js index b85125f..7d54a5d 100644 --- a/test/sdk_test.js +++ b/test/sdk_test.js @@ -37,5 +37,23 @@ describe("The SDK Requirements", () => { it("should create an event using the right spec version", () => { expect(v03.event().spec.payload.specversion).to.equal("0.3"); }); + + it("should exports 'Spec'", () => { + expect(v03).to.have.property("Spec"); + }); + + // StructuredHTTPEmitter + + // StructuredHTTPReceiver + + it("should exports 'BinaryHTTPEmitter'", () => { + expect(v03).to.have.property("BinaryHTTPEmitter"); + }); + + // BinaryHTTPReceiver + + it("should exports 'event'", () => { + expect(v03).to.have.property("event"); + }); }); }); diff --git a/v03/index.js b/v03/index.js index 89a3e99..ab341ee 100644 --- a/v03/index.js +++ b/v03/index.js @@ -1,5 +1,6 @@ const Cloudevent = require("../lib/cloudevent.js"); const Spec = require("../lib/specs/spec_0_3.js"); +const BinaryHTTPEmitter = require("../lib/bindings/http/emitter_binary_0_3.js"); function event() { return new Cloudevent(Spec); @@ -7,5 +8,6 @@ function event() { module.exports = { Spec, + BinaryHTTPEmitter, event };