delivery.test.ts15 lines · main
| 1 | import { describe, expect, test } from 'bun:test'; |
| 2 | |
| 3 | import { getAuthEmailDeliveryStatus } from './delivery.js'; |
| 4 | |
| 5 | describe('auth email delivery status (Phase 4)', () => { |
| 6 | test('reports engine brand and transport shape', () => { |
| 7 | const s = getAuthEmailDeliveryStatus(); |
| 8 | expect(s.engine).toBe('briven-engine'); |
| 9 | expect(['smtp', 'mittera', 'dev-stdout']).toContain(s.activeTransport); |
| 10 | expect(typeof s.smtpConfigured).toBe('boolean'); |
| 11 | expect(typeof s.mitteraConfigured).toBe('boolean'); |
| 12 | expect(typeof s.fromAddress).toBe('string'); |
| 13 | expect(typeof s.realEmailLikely).toBe('boolean'); |
| 14 | }); |
| 15 | }); |