* chore(localization): remove duplicated locale files * feat(localization): add localization for breadcrumbs * feat(localization): add beadcrumb enhancements * feat(debugging): add npm run debug command * chore(localization): add unit tests * chore(breadcrumbs): fix tests and typos * chore(localization): add docs for translationAvailable * chore(localization): refactor translationAvailable
26 lines
406 B
JavaScript
26 lines
406 B
JavaScript
const mockCourse = {
|
|
sys: { id: 'courseId' },
|
|
fields: {
|
|
slug: 'courseSlug',
|
|
title: 'Course title',
|
|
lessons: [
|
|
{ sys: {id: 'lessonId'}, fields: { slug: 'lessonSlug', title: 'Lesson title' } }
|
|
]
|
|
}
|
|
}
|
|
|
|
const mockCategory = {
|
|
sys: {
|
|
id: 'categoryId'
|
|
},
|
|
fields: {
|
|
slug: 'categorySlug',
|
|
title: 'categoryTitle'
|
|
}
|
|
}
|
|
|
|
module.exports = {
|
|
mockCourse,
|
|
mockCategory
|
|
}
|