UNPKG

alwaysai

Version:

The alwaysAI command-line interface (CLI)

13 lines 535 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const alwayscli_1 = require("@alwaysai/alwayscli"); const prompt_1 = require("./prompt"); describe(prompt_1.prompt.name, () => { it('throws "This feature is disabled" if process.stdin is not a TTY', async () => { if (!process.stdin.isTTY) { const ex = await alwayscli_1.runAndCatch(prompt_1.prompt, []); expect(ex.message).toMatch(/This feature is disabled/i); } }); }); //# sourceMappingURL=prompt.test.js.map