From 400f82b2d5c667822195f9ce8328e794181cbd77 Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Tue, 29 Sep 2015 08:12:10 -0500 Subject: [PATCH] Add food content test --- test/content/food.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/content/food.js diff --git a/test/content/food.js b/test/content/food.js new file mode 100644 index 0000000000..d9063ed0d6 --- /dev/null +++ b/test/content/food.js @@ -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); + }); + }); + }); +});