mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
21 lines
563 B
JavaScript
21 lines
563 B
JavaScript
import {all as allQuests} from '../../common/script/src/content/quests';
|
|
import {each} from 'lodash';
|
|
|
|
describe('Quest Locales', () => {
|
|
each(allQuests, (quest, key) => {
|
|
it(`${key} has a valid text attribute`, () => {
|
|
expectValidTranslationString(quest.text);
|
|
});
|
|
|
|
it(`${key} has a valid notes attribute`, () => {
|
|
expectValidTranslationString(quest.notes);
|
|
});
|
|
|
|
if (quest.completion) {
|
|
it(`${key} has a valid completion attribute`, () => {
|
|
expectValidTranslationString(quest.completion);
|
|
});
|
|
}
|
|
});
|
|
});
|