Skip to content

Commit

Permalink
improve test case
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Jan 30, 2024
1 parent 32107f9 commit b22369c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/tags/Mail.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ component extends="org.lucee.cfml.test.LuceeTestCase" labels="mail" {
var parts=msg.getContent();
expect( parts.getCount() ).toBe( 2 );
expect( parts.getBodyPart(0).getContentType() ).toBe( "text/plain; charset=UTF-8" );
expect( parts.getBodyPart(0).getContent() ).toBe( trim("This is a text email!") );
expect( trim(parts.getBodyPart(0).getContent()) ).toBe( "This is a text email!" );
expect( parts.getBodyPart(1).getContentType() ).toBe( "text/html; charset=UTF-8" );
expect( parts.getBodyPart(1).getContent() ).toBe( trim("This is a html email!") );
expect( trim(parts.getBodyPart(1).getContent()) ).toBe( "This is a html email!" );


application.testSMTP.purgeEmailFromAllMailboxes();
Expand Down

0 comments on commit b22369c

Please sign in to comment.