mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 12:12:20 +00:00
enable missing translation messages
This commit is contained in:
parent
fca6707a29
commit
298542b531
@ -12,7 +12,7 @@
|
|||||||
"postinstall": "npm run install-fonts && echo \"MagicMirror installation finished successfully! \n\"",
|
"postinstall": "npm run install-fonts && echo \"MagicMirror installation finished successfully! \n\"",
|
||||||
"test": "NODE_ENV=test jest -i --silent --forceExit",
|
"test": "NODE_ENV=test jest -i --silent --forceExit",
|
||||||
"test:coverage": "NODE_ENV=test nyc --reporter=lcov --reporter=text jest -i --silent --forceExit",
|
"test:coverage": "NODE_ENV=test nyc --reporter=lcov --reporter=text jest -i --silent --forceExit",
|
||||||
"test:e2e": "NODE_ENV=test jest --selectProjects e2e -i --silent --forceExit",
|
"test:e2e": "NODE_ENV=test jest --selectProjects e2e -i --forceExit",
|
||||||
"test:unit": "NODE_ENV=test jest --selectProjects unit --silent --forceExit",
|
"test:unit": "NODE_ENV=test jest --selectProjects unit --silent --forceExit",
|
||||||
"test:prettier": "prettier . --check",
|
"test:prettier": "prettier . --check",
|
||||||
"test:js": "eslint js/**/*.js modules/default/**/*.js clientonly/*.js serveronly/*.js translations/*.js vendor/*.js tests/**/*.js config/* --config .eslintrc.json --quiet",
|
"test:js": "eslint js/**/*.js modules/default/**/*.js clientonly/*.js serveronly/*.js translations/*.js vendor/*.js tests/**/*.js config/* --config .eslintrc.json --quiet",
|
||||||
|
@ -209,8 +209,8 @@ describe("Translations", function () {
|
|||||||
expect(keys).toEqual(base);
|
expect(keys).toEqual(base);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e.message.match(/expect.*toEqual/)) {
|
if (e.message.match(/expect.*toEqual/)) {
|
||||||
// const diff = base.filter((key) => !keys.includes(key));
|
const diff = base.filter((key) => !keys.includes(key));
|
||||||
// console.log(`Missing Translations for language ${language}: ${diff}`);
|
console.log(`Missing Translations for language ${language}: ${diff}`);
|
||||||
} else {
|
} else {
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user