-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #491 from andrechristikan/development
Development
- Loading branch information
Showing
15 changed files
with
376 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { registerAs } from '@nestjs/config'; | ||
|
||
export default registerAs( | ||
'email', | ||
(): Record<string, any> => ({ | ||
fromEmail: '[email protected]', | ||
signUpPlainBody: 'Hi {{name}}, welcome to {{appName}}', | ||
changePasswordPlainBody: 'Hi {{name}}, you password has changed', | ||
}) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export enum ENUM_EMAIL { | ||
SIGN_UP = 'SIGN_UP', | ||
CHANGE_PASSWORD = 'CHANGE_PASSWORD', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { PickType } from '@nestjs/swagger'; | ||
import { EmailSendSignUpDto } from 'src/modules/email/dtos/email.send-sign-up.dto'; | ||
|
||
export class EmailSendChangePasswordDto extends PickType(EmailSendSignUpDto, [ | ||
'name', | ||
] as const) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -267,6 +267,7 @@ describe('AwsSESService', () => { | |
const result: SendTemplatedEmailCommandOutput = await service.send({ | ||
recipients: ['[email protected]'], | ||
templateName: 'template', | ||
sender: '[email protected]', | ||
}); | ||
expect(service['sesClient'].send).toHaveBeenCalled(); | ||
expect(result).toEqual(data); | ||
|
@@ -281,6 +282,7 @@ describe('AwsSESService', () => { | |
const result = service.send({ | ||
recipients: ['[email protected]'], | ||
templateName: 'template', | ||
sender: '[email protected]', | ||
}); | ||
|
||
try { | ||
|
@@ -310,6 +312,7 @@ describe('AwsSESService', () => { | |
}, | ||
], | ||
templateName: 'template', | ||
sender: '[email protected]', | ||
}); | ||
expect(service['sesClient'].send).toHaveBeenCalled(); | ||
expect(result).toEqual(data); | ||
|
@@ -328,6 +331,7 @@ describe('AwsSESService', () => { | |
}, | ||
], | ||
templateName: 'template', | ||
sender: '[email protected]', | ||
}); | ||
|
||
try { | ||
|
Oops, something went wrong.