Add extra test

This commit is contained in:
Isaac Shoebottom 2022-10-21 00:31:21 -03:00
parent 542510f5d0
commit 29d579b8ac

View File

@ -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": {