Test the event() method of SDK Requirements

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2019-07-29 13:26:20 -03:00
parent 4adde60995
commit 375f67952d
1 changed files with 17 additions and 0 deletions

17
test/sdk_test.js Normal file
View File

@ -0,0 +1,17 @@
const expect = require("chai").expect;
const v02 = require("../v02/index.js");
const v03 = require("../v03/index.js");
describe("The SDK Requirements", () => {
describe("v0.2", () => {
it("should create an event using the right spec version", () => {
expect(v02.event().spec.payload.specversion).to.equal("0.2");
});
});
describe("v0.3", () => {
it("should create an event using the right spec version", () => {
expect(v03.event().spec.payload.specversion).to.equal("0.3");
});
});
});