@datr.tech/marble-api-model-validator-unit-test-generator
Version:
A Marble unit test generator for Mongoose based model validators (within the associated API packages)
17 lines • 932 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getModelValidatorUnitTestPaths = void 0;
var enums_1 = require("../enums");
var node_path_1 = __importDefault(require("node:path"));
var getModelValidatorUnitTestPaths = function (_a) {
var api = _a.api, modelValidatorName = _a.modelValidatorName;
return ({
negative: node_path_1.default.resolve(api.paths.test, "".concat(modelValidatorName, ".negative.test.").concat(enums_1.FileExtensionEnum.ts)),
positive: node_path_1.default.resolve(api.paths.test, "".concat(modelValidatorName, ".positive.test.").concat(enums_1.FileExtensionEnum.ts)),
});
};
exports.getModelValidatorUnitTestPaths = getModelValidatorUnitTestPaths;
//# sourceMappingURL=getModelValidatorUnitTestPaths.js.map