Test the event() method of SDK Requirements
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
4adde60995
commit
375f67952d
|
@ -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");
|
||||
});
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue