Exporting the binary receiber
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
8c7de33ca8
commit
23b0648a07
|
@ -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");
|
||||||
// });
|
// });
|
||||||
|
|
|
@ -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
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue