mirror of
https://github.com/immich-app/immich.git
synced 2026-03-04 09:57:33 +03:00
feat: Notification Email Templates (#13940)
This commit is contained in:
@@ -21,6 +21,7 @@ describe(NotificationRepository.name, () => {
|
||||
const request: EmailRenderRequest = {
|
||||
template: EmailTemplate.TEST_EMAIL,
|
||||
data: { displayName: 'Alen Turing', baseUrl: 'http://localhost' },
|
||||
customTemplate: '',
|
||||
};
|
||||
|
||||
const result = await sut.renderEmail(request);
|
||||
@@ -33,6 +34,7 @@ describe(NotificationRepository.name, () => {
|
||||
const request: EmailRenderRequest = {
|
||||
template: EmailTemplate.WELCOME,
|
||||
data: { displayName: 'Alen Turing', username: 'turing', baseUrl: 'http://localhost' },
|
||||
customTemplate: '',
|
||||
};
|
||||
|
||||
const result = await sut.renderEmail(request);
|
||||
@@ -51,6 +53,7 @@ describe(NotificationRepository.name, () => {
|
||||
recipientName: 'Jane',
|
||||
baseUrl: 'http://localhost',
|
||||
},
|
||||
customTemplate: '',
|
||||
};
|
||||
|
||||
const result = await sut.renderEmail(request);
|
||||
@@ -63,6 +66,7 @@ describe(NotificationRepository.name, () => {
|
||||
const request: EmailRenderRequest = {
|
||||
template: EmailTemplate.ALBUM_UPDATE,
|
||||
data: { albumName: 'Holiday', albumId: '123', recipientName: 'Jane', baseUrl: 'http://localhost' },
|
||||
customTemplate: '',
|
||||
};
|
||||
|
||||
const result = await sut.renderEmail(request);
|
||||
|
||||
Reference in New Issue
Block a user