Created
August 23, 2019 10:14
-
-
Save RSamaium/32a3c9a4179ba177ab1ce8115f8b5388 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ConverseTesting, user, bot } from 'newbot/testing' | |
import mainSkill from './main' | |
describe('Sample Test', () => { | |
let converse, userConverse | |
beforeEach(() => { | |
converse = new ConverseTesting(mainSkill, { | |
model: __dirname + '/model/model.nlp' | |
}) | |
userConverse = converse.createUser() | |
}) | |
it('Test main conversation', () => { | |
return userConverse | |
.conversation( | |
bot `Hey ! My name is ChatBot, and you ?`, | |
user `Sam`, | |
bot `Hello Sam`, | |
user `Bye`, | |
bot `Bye Sam` | |
) | |
}) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment