File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff 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
5639describe ( '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 (
You can’t perform that action at this time.
0 commit comments