mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-01 13:20:41 +01:00
test: fix i18n tests
This commit is contained in:
@@ -41,6 +41,10 @@ describe('i18n', () => {
|
||||
it('should only contain valid JSON files', async () => {
|
||||
try {
|
||||
fullPaths.forEach((fullPath) => {
|
||||
if (fullPath.endsWith('_DO_NOT_EDIT_FILES_HERE.md')) {
|
||||
return;
|
||||
}
|
||||
|
||||
const hash = require(fullPath);
|
||||
sourceStrings.set(fullPath.replace(sourcePath, ''), hash);
|
||||
});
|
||||
@@ -84,6 +88,10 @@ describe('i18n', () => {
|
||||
it('should contain only valid JSON files', () => {
|
||||
try {
|
||||
fullPaths.forEach((fullPath) => {
|
||||
if (fullPath.endsWith('_DO_NOT_EDIT_FILES_HERE.md')) {
|
||||
return;
|
||||
}
|
||||
|
||||
const hash = require(fullPath);
|
||||
strings.set(fullPath.replace(translationPath, ''), hash);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user