mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
Create quest content test
This commit is contained in:
20
test/content/quests.js
Normal file
20
test/content/quests.js
Normal file
@@ -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);
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user