Skip to content

Commit

Permalink
fix: map pin email templates
Browse files Browse the repository at this point in the history
  • Loading branch information
benfurber committed Feb 18, 2025
1 parent 68b25af commit 2a36c46
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ describe('Create map pin moderation emails', () => {
)
// Check that the email contains the correct guidelines link
expect(html).toContain(
`https://drive.google.com/file/d/1fXTtBbzgCO0EL6G9__aixwqc-Euqgqnd/view`,
`https://community.preciousplastic.com/academy/guides/platform`,
)
// Check that the email contains the correct PP signoff
expect(html).toContain(PP_SIGNOFF)
Expand All @@ -416,7 +416,7 @@ describe('Create map pin moderation emails', () => {
const mapPinNeedsImprovements = {
_id: 'user_1',
moderation: IModerationStatus.IMPROVEMENTS_NEEDED,
moderatorFeedback: MOCK_MAP_PIN_MODERATION_COMMENT,
comments: MOCK_MAP_PIN_MODERATION_COMMENT,
}
const change = FirebaseEmulatedTest.mockFirestoreChangeObject(
mapPinAwaitingModeration,
Expand Down Expand Up @@ -445,7 +445,7 @@ describe('Create map pin moderation emails', () => {
)
// Check that the email contains the correct guidelines link
expect(html).toContain(
`https://drive.google.com/file/d/1fXTtBbzgCO0EL6G9__aixwqc-Euqgqnd/view`,
`https://community.preciousplastic.com/academy/guides/platform`,
)
expect(html).toContain(MOCK_MAP_PIN_MODERATION_COMMENT)
// Check that the email contains the correct PP signoff
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

<p>Your profile needs more work before we can publish your map pin.</p>

{{#if mapPin.moderatorFeedback}}
{{#if mapPin.comments}}
<p>Please review the following & re-submit your map pin:</p>
<b>{{mapPin.moderatorFeedback}}</b>
<b>{{mapPin.comments}}</b>
{{/if}}

<p>
Check out the
<a
href="https://drive.google.com/file/d/1fXTtBbzgCO0EL6G9__aixwqc-Euqgqnd/view"
href="https://community.preciousplastic.com/academy/guides/platform"
>profile guidelines</a
>
to review our requirements.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<li>Your work is related to recycling plastic, and/or</li>
<li>You work on small-scale recycling</li>
</ol>
Check the <a href="https://drive.google.com/file/d/1fXTtBbzgCO0EL6G9__aixwqc-Euqgqnd/view">profile guidelines</a>, and make sure the 2 points above are clear. If we have misunderstood, complete your profile and re-submit your request :)
Check the <a href="https://community.preciousplastic.com/academy/guides/platform">profile guidelines</a>, and make sure the 2 points above are clear. If we have misunderstood, complete your profile and re-submit your request. :)
</p>

<p>
Expand Down

0 comments on commit 2a36c46

Please sign in to comment.