mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 01:09:54 +08:00
refactor(server): mail service (#10934)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import test from 'ava';
|
||||
|
||||
import { Renderers } from '../mails';
|
||||
|
||||
test('should render emails', async t => {
|
||||
for (const render of Object.values(Renderers)) {
|
||||
// @ts-expect-error use [PreviewProps]
|
||||
const content = await render();
|
||||
t.snapshot(content.html, content.subject);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user