Add extra test
This commit is contained in:
parent
542510f5d0
commit
29d579b8ac
@ -19,7 +19,7 @@ describe("match",
|
|||||||
expect(message.match(testMsg,{"Subject": "lunch"})).toEqual(true);
|
expect(message.match(testMsg,{"Subject": "lunch"})).toEqual(true);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
describe("message body",
|
describe("message body",
|
||||||
function () {
|
function () {
|
||||||
it("unsigned message",
|
it("unsigned message",
|
||||||
function () {
|
function () {
|
||||||
@ -51,6 +51,10 @@ ciao,
|
|||||||
Marco
|
Marco
|
||||||
`);
|
`);
|
||||||
});
|
});
|
||||||
|
it("no body",
|
||||||
|
function() {
|
||||||
|
expect(message.body(testMsg)).toEqual(undefined)
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
let fullHeaderMsg ={"headers": {
|
let fullHeaderMsg ={"headers": {
|
||||||
|
Loading…
Reference in New Issue
Block a user