Compare commits
No commits in common. "ee767d8067780176bceaaf9b9069f76cd5a39ca2" and "542510f5d0b22f105c962d757f5e89e4b8dffd05" have entirely different histories.
ee767d8067
...
542510f5d0
@ -8,7 +8,6 @@ function match(message, headers) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function body(message) {
|
function body(message) {
|
||||||
if (message["body"] !== undefined) {
|
|
||||||
if (message["body"][0]["content-type"] === "text/plain") {
|
if (message["body"][0]["content-type"] === "text/plain") {
|
||||||
return message["body"][0]["content"];
|
return message["body"][0]["content"];
|
||||||
}
|
}
|
||||||
@ -17,8 +16,6 @@ function body(message) {
|
|||||||
return message["body"][0]["content"][0]["content"];
|
return message["body"][0]["content"][0]["content"];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return undefined;
|
|
||||||
}
|
|
||||||
|
|
||||||
function string(message) {
|
function string(message) {
|
||||||
let string = "";
|
let string = "";
|
||||||
|
@ -51,10 +51,6 @@ 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