Files
the-example-app-nodejs/test/unit/locales.test.js
Benedikt Rötsch 67b5d09a5c Fix breadcrumb and add test for locales (#49)
* test(unit): add test to check for locale consistency

* fix(breadcrumb): translate lessons route
2017-11-09 11:25:02 +01:00

12 lines
374 B
JavaScript

const germanLocales = require('../../i18n/locales/de-DE.json')
const englishLocales = require('../../i18n/locales/en-US.json')
describe('locales', () => {
test('all labels coexist in all locale files', async () => {
const germanKeys = Object.keys(germanLocales)
const englishKeys = Object.keys(englishLocales)
expect(germanKeys).toEqual(englishKeys)
})
})