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

17 lines
9.2 KiB
JavaScript
Raw Normal View History

"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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvdG9jb2wuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvc2VydmljZXMvY29tcGlsZXIvcHJvdG9jb2wudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBK0JhLFFBQUEsdUJBQXVCLEdBQVEsQ0FBQyxVQUFVLEVBQUUsU0FBUyxDQUFVLENBQUM7QUFDaEUsUUFBQSw0QkFBNEIsR0FBRyxDQUFDLGNBQWMsRUFBRSxhQUFhLENBQVUsQ0FBQztBQUN4RSxR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