Exporting the v0.3 stuff
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
0f8823c36e
commit
e7b5c833c6
|
@ -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");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue