File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -861,8 +861,8 @@ function read(
861861
862862 try {
863863 if ( encoding === 'base64' ) {
864- result . html = Base64 . decode ( result . html ) ;
865- }
864+ result . html = Base64 . decode ( result . html ) ;
865+ }
866866 else if ( Base64 . btoa ( Base64 . atob ( result . html ) ) == result . html ) {
867867 result . html = Base64 . atob ( result . html ) ;
868868 }
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ describe('readEml should decode', () => {
131131 expect ( readEmlJson . attachments [ 0 ] . name ) . to . equal ( 'image.png' ) ;
132132 } ) ;
133133
134- it ( 'base64 encoded html body' , ( ) => {
134+ it ( 'base64 encoded text and html body' , ( ) => {
135135 const readEmlJson = readEmlForTest ( './fixtures/unicode.eml' ) ;
136136 expect ( readEmlJson . text ) . to . contain ( 'コピーボタンをクリックすると' ) ;
137137 expect ( readEmlJson . html ) . to . contain ( 'コピーボタンをクリックすると' ) ;
You can’t perform that action at this time.
0 commit comments