From ea14326025a62225c1dfb4dc58a4ab2e4d48d508 Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Sun, 15 Nov 2015 10:18:10 -0600 Subject: [PATCH] Adjust faq test --- test/content/faq.js | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/test/content/faq.js b/test/content/faq.js index 40b58181e1..4623adde2d 100644 --- a/test/content/faq.js +++ b/test/content/faq.js @@ -1,22 +1,28 @@ +import { each } from 'lodash'; import { expectValidTranslationString, - describeEachItem } from '../helpers/content.helper'; import {questions, stillNeedHelp} from '../../common/script/src/content/faq'; describe('FAQ Locales', () => { - describeEachItem('Questions', questions, (question, index) => { - it('has a valid question', () => { - expectValidTranslationString(question.question); + describe('Questions', () => { + it('has a valid questions', () => { + each(questions, (question, key) => { + expectValidTranslationString(question.question); + }); }); - it('has a valid ios answer', () => { - expectValidTranslationString(question.ios); + it('has a valid ios answers', () => { + each(questions, (question, key) => { + expectValidTranslationString(question.ios); + }); }); - it('has a valid web answer', () => { - expectValidTranslationString(question.web); + it('has a valid web answers', () => { + each(questions, (question, key) => { + expectValidTranslationString(question.web); + }); }); });