Innovenergy_trunk/frontend/node_modules/testcafe/lib/services/compiler/protocol.js

17 lines
9.2 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isFixtureFunctionProperty = exports.isTestFunctionProperty = exports.FUNCTION_PROPERTIES = exports.FIXTURE_FUNCTION_PROPERTIES = exports.TEST_FUNCTION_PROPERTIES = exports.BEFORE_AFTER_EACH_PROPERTIES = exports.BEFORE_AFTER_PROPERTIES = void 0;
exports.BEFORE_AFTER_PROPERTIES = ['beforeFn', 'afterFn'];
exports.BEFORE_AFTER_EACH_PROPERTIES = ['beforeEachFn', 'afterEachFn'];
exports.TEST_FUNCTION_PROPERTIES = ['fn', ...exports.BEFORE_AFTER_PROPERTIES];
exports.FIXTURE_FUNCTION_PROPERTIES = [...exports.BEFORE_AFTER_PROPERTIES, ...exports.BEFORE_AFTER_EACH_PROPERTIES];
exports.FUNCTION_PROPERTIES = [...exports.TEST_FUNCTION_PROPERTIES, ...exports.BEFORE_AFTER_EACH_PROPERTIES];
function isTestFunctionProperty(value) {
return exports.TEST_FUNCTION_PROPERTIES.includes(value);
}
exports.isTestFunctionProperty = isTestFunctionProperty;
function isFixtureFunctionProperty(value) {
return exports.FIXTURE_FUNCTION_PROPERTIES.includes(value);
}
exports.isFixtureFunctionProperty = isFixtureFunctionProperty;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvdG9jb2wuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvc2VydmljZXMvY29tcGlsZXIvcHJvdG9jb2wudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBK0JhLFFBQUEsdUJBQXVCLEdBQVEsQ0FBQyxVQUFVLEVBQUUsU0FBUyxDQUFVLENBQUM7QUFDaEUsUUFBQSw0QkFBNEIsR0FBRyxDQUFDLGNBQWMsRUFBRSxhQUFhLENBQVUsQ0FBQztBQUN4RSxRQUFBLHdCQ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