Rebrand and updated copyright date
This commit is contained in:
@@ -103,8 +103,8 @@ describe('EmailClient', () => {
|
||||
process.env = {
|
||||
...originalEnv,
|
||||
EMAIL_ENABLED: 'true',
|
||||
SES_FROM_EMAIL: 'noreply@rentall.com',
|
||||
SES_FROM_NAME: 'RentAll',
|
||||
SES_FROM_EMAIL: 'noreply@villageshare.app',
|
||||
SES_FROM_NAME: 'Village Share',
|
||||
};
|
||||
});
|
||||
|
||||
@@ -159,7 +159,7 @@ describe('EmailClient', () => {
|
||||
);
|
||||
|
||||
expect(SendEmailCommand).toHaveBeenCalledWith({
|
||||
Source: 'RentAll <noreply@rentall.com>',
|
||||
Source: 'Village Share <noreply@villageshare.app>',
|
||||
Destination: {
|
||||
ToAddresses: ['test@example.com'],
|
||||
},
|
||||
@@ -237,7 +237,7 @@ describe('EmailClient', () => {
|
||||
});
|
||||
|
||||
it('should add reply-to address if configured', async () => {
|
||||
process.env.SES_REPLY_TO_EMAIL = 'support@rentall.com';
|
||||
process.env.SES_REPLY_TO_EMAIL = 'support@villageshare.app';
|
||||
const mockSend = jest.fn().mockResolvedValue({ MessageId: 'msg-000' });
|
||||
SESClient.mockImplementation(() => ({ send: mockSend }));
|
||||
|
||||
@@ -253,7 +253,7 @@ describe('EmailClient', () => {
|
||||
|
||||
expect(SendEmailCommand).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
ReplyToAddresses: ['support@rentall.com'],
|
||||
ReplyToAddresses: ['support@villageshare.app'],
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
@@ -186,7 +186,7 @@ describe('TemplateManager', () => {
|
||||
// Should return fallback template content
|
||||
expect(result).toContain('Test Title');
|
||||
expect(result).toContain('Test Message');
|
||||
expect(result).toContain('RentAll');
|
||||
expect(result).toContain('Village Share');
|
||||
});
|
||||
|
||||
it('should auto-initialize if not initialized', async () => {
|
||||
@@ -275,7 +275,7 @@ describe('TemplateManager', () => {
|
||||
|
||||
expect(fallback).toContain('{{title}}');
|
||||
expect(fallback).toContain('{{message}}');
|
||||
expect(fallback).toContain('RentAll');
|
||||
expect(fallback).toContain('Village Share');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user