mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-09 00:57:15 +01:00
feat(tests): add unit tests for email parsing functionality and MsgReader interop fix
This commit is contained in:
1 parent
8b6da83ba7
commit
f169308439
2 files changed
+327
-1
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import PostalMime from 'postal-mime';
|
||||
import MsgReader from '@kenjiuno/msgreader';
|
||||
import MsgReaderDefault from '@kenjiuno/msgreader';
|
||||
import {
|
||||
formatBytes,
|
||||
escapeHtml,
|
||||
@@ -9,6 +9,11 @@ import {
|
||||
} from '../utils/helpers.js';
|
||||
import type { EmailAttachment, ParsedEmail, EmailRenderOptions } from '@/types';
|
||||
|
||||
type MsgReaderCtor = typeof MsgReaderDefault;
|
||||
const MsgReader: MsgReaderCtor =
|
||||
(MsgReaderDefault as unknown as { default?: MsgReaderCtor }).default ??
|
||||
MsgReaderDefault;
|
||||
|
||||
export type { EmailAttachment, ParsedEmail, EmailRenderOptions };
|
||||
|
||||
function formatAddress(
|
||||
|
||||
Reference in new issue
Block a user