mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
Add egg content test
This commit is contained in:
21
test/content/eggs.js
Normal file
21
test/content/eggs.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import {allEggs} from '../../common/script/src/content/eggs';
|
||||
import {each} from 'lodash';
|
||||
|
||||
describe('Egg Locales', () => {
|
||||
each(allEggs, (egg, key) => {
|
||||
describe(`${key} Egg`, () => {
|
||||
it('has a valid text attribute', () => {
|
||||
expectValidTranslationString(egg.text);
|
||||
});
|
||||
|
||||
it('has a valid notes attribute', () => {
|
||||
expectValidTranslationString(egg.notes);
|
||||
});
|
||||
|
||||
it('has a valid ajective attribute', () => {
|
||||
expectValidTranslationString(egg.adjective);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user