From c846cfd6534c4592c91a4d2aac3bd5a04114ae92 Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Tue, 29 Sep 2015 12:38:34 -0500 Subject: [PATCH] Add background content test --- test/content/backgrounds.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/content/backgrounds.js diff --git a/test/content/backgrounds.js b/test/content/backgrounds.js new file mode 100644 index 0000000000..db526b24dd --- /dev/null +++ b/test/content/backgrounds.js @@ -0,0 +1,21 @@ +import backgroundSets from '../../common/script/src/content/backgrounds'; +import {each} from 'lodash'; + +describe('Backgrounds Locales', () => { + each(backgroundSets, (set, key) => { + describe(`${key} Set`, () => { + each(set, (bg, name) => { + describe(`${name} Background`, () => { + it('has a valid text attribute', () => { + expectValidTranslationString(bg.text); + }); + + it('has a valid notes attribute', () => { + expectValidTranslationString(bg.notes); + }); + }); + }); + }); + }); +}); +