diff --git a/src/core/lib/Magic.mjs b/src/core/lib/Magic.mjs index 2de66897..c0ea224b 100644 --- a/src/core/lib/Magic.mjs +++ b/src/core/lib/Magic.mjs @@ -4,7 +4,7 @@ import Recipe from "../Recipe.mjs"; import Dish from "../Dish.mjs"; import {detectFileType} from "./FileType.mjs"; import chiSquared from "chi-squared"; -import potentialOps from "./Test.mjs"; +import potentialOps from "./MagicObject.mjs"; import { isType } from "./FileType.mjs"; /** diff --git a/src/core/lib/Test.mjs b/src/core/lib/MagicObject.mjs similarity index 89% rename from src/core/lib/Test.mjs rename to src/core/lib/MagicObject.mjs index 9cc928bf..f200a79e 100644 --- a/src/core/lib/Test.mjs +++ b/src/core/lib/MagicObject.mjs @@ -1,11 +1,12 @@ import OperationConfig from "../config/OperationConfig.json"; /** - * + * An object used by magic to store the input/output criteria for valid operation results. */ class potentialOps { /** + * PotentialOps constructor. * * @param prevOp */ @@ -24,6 +25,7 @@ class potentialOps { } /** + * Sets the output regexes for the operation. * * @param outputRegexes */ @@ -33,6 +35,7 @@ class potentialOps { } /** + * Sets the input regexes for the operation. * * @param inputRegexes */ @@ -42,14 +45,19 @@ class potentialOps { } /** + * Returns the operations input regexes. * + * @returns {Object[]} */ getInputRegexes () { + console.log(typeof this.inputRegexes); return this.inputRegexes; } /** + * Returns the operations output regexes. * + * @returns {Object[]} */ getOutputRegexes () { return this.outputRegexes;