mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Remove unneded function
This commit is contained in:
@@ -1,6 +1,4 @@
|
|||||||
require('./globals.helper');
|
require('./globals.helper');
|
||||||
import {readdirSync} from 'fs';
|
|
||||||
import {resolve} from 'path';
|
|
||||||
import {each} from 'lodash';
|
import {each} from 'lodash';
|
||||||
|
|
||||||
import i18n from '../../common/script/src/i18n';
|
import i18n from '../../common/script/src/i18n';
|
||||||
@@ -20,17 +18,6 @@ global.expectValidTranslationString = (attribute) => {
|
|||||||
expect(translatedString).to.not.match(STRING_DOES_NOT_EXIST_MSG);
|
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) => {
|
global.describeEachItem = (testDescription, set, cb, describeFunction) => {
|
||||||
// describeFunction allows you to pass in 'only' or 'skip'
|
// describeFunction allows you to pass in 'only' or 'skip'
|
||||||
// as the last argument for writing/debugging tests.
|
// as the last argument for writing/debugging tests.
|
||||||
|
|||||||
Reference in New Issue
Block a user