Add egg content test

This commit is contained in:
Blade Barringer
2015-09-29 08:07:07 -05:00
parent e27751c1be
commit 54e910d67a

21
test/content/eggs.js Normal file
View 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);
});
});
});
});