Exporting the binary receiber

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2019-11-04 09:45:25 -03:00
parent 8c7de33ca8
commit 23b0648a07
2 changed files with 10 additions and 4 deletions

View File

@ -93,10 +93,10 @@ describe("The SDK Requirements", () => {
expect(v1).to.have.property("BinaryHTTPEmitter"); expect(v1).to.have.property("BinaryHTTPEmitter");
}); });
// it("should exports 'BinaryHTTPReceiver'", () => { it("should exports 'BinaryHTTPReceiver'", () => {
// expect(v1).to.have.property("BinaryHTTPReceiver"); expect(v1).to.have.property("BinaryHTTPReceiver");
// }); });
//
// it("should exports 'HTTPUnmarshaller'", () => { // it("should exports 'HTTPUnmarshaller'", () => {
// expect(v1).to.have.property("HTTPUnmarshaller"); // expect(v1).to.have.property("HTTPUnmarshaller");
// }); // });

View File

@ -1,12 +1,17 @@
const Cloudevent = require("../lib/cloudevent.js"); const Cloudevent = require("../lib/cloudevent.js");
const Spec = require("../lib/specs/spec_1.js"); const Spec = require("../lib/specs/spec_1.js");
const StructuredHTTPEmitter = const StructuredHTTPEmitter =
require("../lib/bindings/http/emitter_structured.js"); require("../lib/bindings/http/emitter_structured.js");
const BinaryHTTPEmitter = require("../lib/bindings/http/emitter_binary_1.js"); const BinaryHTTPEmitter = require("../lib/bindings/http/emitter_binary_1.js");
const StructuredHTTPReceiver = const StructuredHTTPReceiver =
require("../lib/bindings/http/receiver_structured_1.js"); require("../lib/bindings/http/receiver_structured_1.js");
const BinaryHTTPReceiver =
require("../lib/bindings/http/receiver_binary_1.js");
function event() { function event() {
return new Cloudevent(Spec); return new Cloudevent(Spec);
} }
@ -16,5 +21,6 @@ module.exports = {
StructuredHTTPEmitter, StructuredHTTPEmitter,
BinaryHTTPEmitter, BinaryHTTPEmitter,
StructuredHTTPReceiver, StructuredHTTPReceiver,
BinaryHTTPReceiver,
event event
}; };