UNPKG

prodap-chatbot-domain

Version:

Classes utilizadas na resposta de todas as Intents do Assistente Virtual

32 lines 939 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.buttonWithSuffixMetric = exports.button = void 0; const index_1 = require("../../../../index"); const button = async () => { const result = new index_1.Dialog('Button'); result.add(new index_1.Button({ list: [ { value: 'text', }, ], text: 'text', })); expect(result.messages.length).toBe(1); }; exports.button = button; const buttonWithSuffixMetric = async () => { const result = new index_1.Dialog('Button'); result.add(new index_1.Button({ list: [ { value: 'text', textMetric: 'textMetric', }, ], text: 'text', })); expect(result.messages[0].list[0].textMetric).toBe('textMetric'); }; exports.buttonWithSuffixMetric = buttonWithSuffixMetric; //# sourceMappingURL=Button.js.map