-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#IOPID-1444] name inside mailvalidation (#304)
- Loading branch information
Showing
16 changed files
with
1,275 additions
and
161 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sonar.cpd.exclusions=**/__tests__/* |
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 |
---|---|---|
|
@@ -9,6 +9,7 @@ import { | |
getSendValidationEmailActivityHandler | ||
} from "../handler"; | ||
import { apply } from "../../generated/templates/mailvalidation/index"; | ||
import { aName } from "../../__mocks__/mocks"; | ||
|
||
const htmlAndTextContent = "CONTENT"; | ||
|
||
|
@@ -44,14 +45,16 @@ describe("SendTemplatedValidationEmailActivityHandler", () => { | |
|
||
const input = SendValidationEmailActivityInput.encode({ | ||
email: "[email protected]" as EmailString, | ||
token: "FAKE_TOKEN" | ||
token: "FAKE_TOKEN", | ||
name: aName | ||
}); | ||
|
||
await handler(contextMock as any, input); | ||
|
||
expect(apply).toBeCalledWith( | ||
emailDefaults.title, | ||
`${functionsPublicUrl}/validate-profile-email?token=${input.token}` | ||
`${functionsPublicUrl}/validate-profile-email?token=${input.token}`, | ||
aName | ||
); | ||
expect(mailerTransporterMock.sendMail).toHaveBeenCalledWith( | ||
{ | ||
|
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
Oops, something went wrong.