UNPKG

ivr-tester-cli

Version:

CLI for automated testing of IVR call flows

19 lines (18 loc) 608 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.jsonWhenPromptIsAnything = void 0; const joi_1 = __importDefault(require("joi")); const ivr_tester_1 = require("ivr-tester"); const typeValue = "isAnything"; exports.jsonWhenPromptIsAnything = { typeValue, schema: joi_1.default.object({ type: joi_1.default.valid(typeValue).required(), }), converter(json) { return ivr_tester_1.isAnything(); }, };