Skip to content

Commit c2bf958

Browse files
author
Eric Thieme-Garmann
committed
lint stuff
1 parent 544abc8 commit c2bf958

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

tests/tests/ZZZ-mail-test.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,6 @@ const getMail = async function getMail (
3535
return mail;
3636
};
3737

38-
const getMails = async function getMails (address, subject) {
39-
const mailsResponse = await chakram.get(
40-
'http://mailhog:8025/api/v2/messages?limit=9999'
41-
);
42-
const mails = mailsResponse.body.items;
43-
44-
return mails
45-
.filter(function (item) {
46-
return (
47-
item.Raw.To[0] === address &&
48-
item.Content.Headers.Subject.includes(subject)
49-
);
50-
})
51-
.map(function (mail) {
52-
return $.load(mimelib.decodeQuotedPrintable(mail.Content.Body));
53-
});
54-
};
5538

5639
describe('mails', function () {
5740
it('should have sent mails', function () {
@@ -549,7 +532,6 @@ describe('mails', function () {
549532
});
550533
});
551534

552-
553535

554536
it('should have sent a mail upon deletion of an user', async function () {
555537
const mail = await getMail(

0 commit comments

Comments
 (0)