Files
webmail/components/mail-transfer/__tests__/transfer-progress.test.ts
T
Linus Rath cbd23db2fe fix: give mail import and export their own settings section and name the upload limit as the server does
- Settings > Backup & reset gets a Mail files section for Import mail
  and Export all mail, instead of sitting under settings backup.
- The pause message names Stalwart's 50000000-byte quota as 50 MB, not
  48 MB, and the dialog and settings texts mention .ost files.
- The old import's leftovers go: expandImportableEmails and
  EML_IMPORT_ACCEPT in lib/eml-import.ts, and the strings
  email_viewer.import_email, mailbox_context_menu.import_email and
  notifications.import_email_success/_error in all 30 locales.

lib/__tests__/eml-import.test.ts loses the tests of the removed
functions; its #891 checks that an .eml and an .eml in a ZIP keep their
Date header now run against the import's own sources.
2026-11-01 07:05:02 +01:00

9 lines
295 B
TypeScript

import { describe, it, expect } from 'vitest';
import { serverMegabytes } from '@/components/mail-transfer/transfer-progress';
describe('serverMegabytes', () => {
it('names Stalwart\'s upload quota as the server does', () => {
expect(serverMegabytes(50_000_000)).toBe('50 MB');
});
});