Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Scar26 <mmatty26@gmail.com>
  • Loading branch information
Scar26 committed Sep 6, 2020
1 parent 63041d4 commit f9a3e5b
Showing 1 changed file with 25 additions and 50 deletions.
75 changes: 25 additions & 50 deletions test/initialize-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,59 +3,34 @@ const expect = chai.expect
const juice = require('../index')

const trainingSet = {
lang: 'en',
intents: [
"lang": "en",
"data": [
{
question: 'goodbye for now',
intent: 'greetings.bye'
"intent": "greetings.bye",
"utterances": [
"goodbye for now",
"bye bye take care"
],
"answers": [
{
"action": "response",
"body": "Ok Cya"
}
]
},
{
question: 'bye bye take care',
intent: 'greetings.bye'
},
{
question: 'hello',
intent: 'greetings.hello'
},
{
question: 'hi',
intent: 'greetings.hello'
},
{
question: 'howdy',
intent: 'greetings.hello'
},
{
question: 'how much is X',
intent: 'queries.productprice'
},
{
question: 'how much does X cost',
intent: 'queries.productprice'
}
],
answers: [
{
intent: 'greetings.bye',
answer: {
action: 'response',
body: 'Ok Cya'
}
},
{
intent: 'greetings.hello',
answer: {
action: 'response',
body: 'Hello <customer-name>'
}
},
{
intent: 'queries.productprice',
answer: {
action: 'function',
handler: 'productPrice',
body: ''
}
"intent": "greetings.hello",
"utterances": [
"hello",
"hi",
"howdy"
],
"answers": [
{
"action": "response",
"body": "Hello <customer-name>"
}
]
}
]
}
Expand Down

0 comments on commit f9a3e5b

Please sign in to comment.