cp-translations
Version:
Translations for the CoderDojo Community Platform
37 lines (35 loc) • 985 B
JavaScript
const renderTemplate = require('./helpers/renderTemplate');
const supportedLocales = require('./supportedLocales');
describe('ticket-application-received', () => {
supportedLocales.forEach((locale) => {
it(`should render ${locale}`, async () => {
await renderTemplate('ticket-application-received', locale, {
applicantName: 'Some Name',
intro: 'Intro!',
applicationDate: '01/01/1970',
sessionName: 'Scratch',
tickets: [
{
ticketName: 'Ninja',
ticketType: 'ninja',
quantity: 1
},
{
ticketName: 'Parent',
ticketType: 'parent-guardian',
quantity: 1
},
],
status: 'Pending',
eventDate: '01/01/1970',
event: {
id: 2,
address: '123 Fake St.',
},
applicationId: 1,
cancelLinkBase: 'http://example.com',
year: 2017,
});
});
});
});