mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-18 17:54:10 +00:00
Add food content test
This commit is contained in:
parent
0af658dab7
commit
400f82b2d5
1 changed files with 16 additions and 0 deletions
16
test/content/food.js
Normal file
16
test/content/food.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import allFood from '../../common/script/src/content/food';
|
||||
import {each} from 'lodash';
|
||||
|
||||
describe('Food Locales', () => {
|
||||
each(allFood, (food, key) => {
|
||||
describe(`${key} Food`, () => {
|
||||
it('has a valid text attribute', () => {
|
||||
expectValidTranslationString(food.text);
|
||||
});
|
||||
|
||||
it('has a valid notes attribute', () => {
|
||||
expectValidTranslationString(food.notes);
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
Loading…
Reference in a new issue