From f6aa316eb14ff32687f68c34a06f8729eced3ffe Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Tue, 29 Sep 2015 07:55:35 -0500 Subject: [PATCH] Create quest content test --- test/content/quests.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/content/quests.js 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); + }); + } + }); +});