mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-04 09:39:23 +00:00
22 lines
609 B
JavaScript
22 lines
609 B
JavaScript
import {all as allQuests} from '../../common/script/src/content/quests';
|
|
import {each} from 'lodash';
|
|
|
|
describe('Quest Locales', () => {
|
|
each(allQuests, (quest, key) => {
|
|
describe(`${key} Quest`, () => {
|
|
it('has a valid text attribute', () => {
|
|
expectValidTranslationString(quest.text);
|
|
});
|
|
|
|
it('has a valid notes attribute', () => {
|
|
expectValidTranslationString(quest.notes);
|
|
});
|
|
|
|
if (quest.completion) {
|
|
it('has a valid completion attribute', () => {
|
|
expectValidTranslationString(quest.completion);
|
|
});
|
|
}
|
|
});
|
|
});
|
|
});
|