diff --git a/test/content/quests.js b/test/content/quests.js new file mode 100644 index 0000000000..d3ab403745 --- /dev/null +++ b/test/content/quests.js @@ -0,0 +1,20 @@ +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); + }); + } + }); +});