Remove unneded function

This commit is contained in:
Blade Barringer
2015-10-03 10:31:20 -05:00
parent 8987645725
commit d4843d958d

View File

@@ -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.