From d4843d958da5ba79b044f4215acc32bd042e86a4 Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Sat, 3 Oct 2015 10:31:20 -0500 Subject: [PATCH] Remove unneded function --- test/helpers/content.helper.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/test/helpers/content.helper.js b/test/helpers/content.helper.js index b065195b41..26eff01029 100644 --- a/test/helpers/content.helper.js +++ b/test/helpers/content.helper.js @@ -1,6 +1,4 @@ require('./globals.helper'); -import {readdirSync} from 'fs'; -import {resolve} from 'path'; import {each} from 'lodash'; import i18n from '../../common/script/src/i18n'; @@ -20,17 +18,6 @@ global.expectValidTranslationString = (attribute) => { expect(translatedString).to.not.match(STRING_DOES_NOT_EXIST_MSG); }; -global.runTestsInDirectory = (directory) => { - const CONTENT_TEST_PATH = './test/content/'; - let directoryPath = `${CONTENT_TEST_PATH}${directory}`; - let files = readdirSync(directoryPath); - - files.forEach((file) => { - let filePath = resolve(`${directoryPath}/${file}`); - require(filePath); - }); -}; - global.describeEachItem = (testDescription, set, cb, describeFunction) => { // describeFunction allows you to pass in 'only' or 'skip' // as the last argument for writing/debugging tests.