Exporting the receiver and emitter for binary 0.3
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
805c8971a1
commit
fd119040fc
|
@ -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");
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue