Commit 7ec8154
committed
chore(email-renderer): Flatten types for renderer and fix some tests
- The types on fxa-email-renderer render functions make them difficult to use in auth-server
- And there was some cleanup to do from the first integration with email-sender to auth-server
- Flattens the types on fxa-email-renderer functions
- Updates snapshot tests (even though they're still skipped)
- Updates the fxa-mailer to use the flattened type
- Fixes first libs email sender test to use deepEquals assert on params passed to mailer
- Adds a formatGeoData to convert app request geo location data to format expected by library
Closes: FXA-128851 parent 745da87 commit 7ec8154
File tree
11 files changed
+900
-1158
lines changed- libs/accounts/email-renderer/src
- partials/userInfo
- renderer
- packages
- fxa-admin-server/src/backend
- fxa-auth-server
- lib
- routes
- senders
- test
- local/routes
11 files changed
+900
-1158
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
23 | 19 | | |
24 | 20 | | |
25 | 21 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
0 commit comments