Skip to content

Commit

Permalink
add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
cathysarisky committed Oct 28, 2024
1 parent 7f66b14 commit ea627fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ghost/i18n/test/i18n.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,10 @@ describe('i18n', function () {
}
});
});
describe('newsletter i18n', function () {
it('should have a prefix and suffix for the newsletter interpolation', async function () {
const t = i18n('fr', 'newsletter').t;
assert.equal(t('Your subscription will renew on {date}.', {date: '8 Oct 2024'}), 'Votre abonnement sera renouvelé le 8 Oct 2024.');
});
});
});

0 comments on commit ea627fa

Please sign in to comment.