@memori.ai/memori-api-client
Version:
React library to integrate a Memori in your app or website
20 lines • 796 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const index_1 = tslib_1.__importDefault(require("../index"));
const client = (0, index_1.default)('https://backend.memori.ai');
describe('engine/dialog api', () => {
it('works on dialog apis', async () => {
expect(await client.dialog.postTextEnteredEvent({
sessionId: '768b9654-e781-4c3c-81fa-ae1529d1bfbe',
text: 'Ciaone',
})).not.toBeNull();
});
it('works on dialog apis with shorthand version', async () => {
expect(await client.postTextEnteredEvent({
sessionId: '768b9654-e781-4c3c-81fa-ae1529d1bfbe',
text: 'Ciaone',
})).not.toBeNull();
});
});
//# sourceMappingURL=dialog.test.js.map