From 0fc41abe2572f145ab0a173e836692270befb19f Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Tue, 29 Sep 2015 12:33:55 -0500 Subject: [PATCH] Add FAQ content test --- test/content/faq.js | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 test/content/faq.js diff --git a/test/content/faq.js b/test/content/faq.js new file mode 100644 index 0000000000..557160ca53 --- /dev/null +++ b/test/content/faq.js @@ -0,0 +1,32 @@ +import {questions, stillNeedHelp} from '../../common/script/src/content/faq'; +import {each} from 'lodash'; + +describe('FAQ Locales', () => { + describe('Questions', () => { + each(questions, (question, index) => { + describe(`FAQ ${index}`, () => { + it('has a valid question', () => { + expectValidTranslationString(question.question); + }); + + it('has a valid ios answer', () => { + expectValidTranslationString(question.ios); + }); + + it('has a valid web answer', () => { + expectValidTranslationString(question.web); + }); + }); + }); + }); + + describe('Still Need Help Message', () => { + it('has a valid ios message', () => { + expectValidTranslationString(stillNeedHelp.ios); + }); + + it('has a valid web message', () => { + expectValidTranslationString(stillNeedHelp.web); + }); + }); +});