Skip to content

Instantly share code, notes, and snippets.

@RSamaium
Created August 23, 2019 10:14
Show Gist options
  • Save RSamaium/32a3c9a4179ba177ab1ce8115f8b5388 to your computer and use it in GitHub Desktop.
Save RSamaium/32a3c9a4179ba177ab1ce8115f8b5388 to your computer and use it in GitHub Desktop.
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