Skip to content

Commit 36870cb

Browse files
authored
Merge pull request #2725 from juice-shop/fix/update-to-juicy-chat-bot-0-9-0
Update juicy-chat-bot version to 0.9.0
2 parents 6c77a75 + 8470f16 commit 36870cb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@
156156
"js-yaml": "^3.14.0",
157157
"jsonwebtoken": "0.4.0",
158158
"jssha": "^3.3.1",
159-
"juicy-chat-bot": "~0.8.0",
159+
"juicy-chat-bot": "~0.9.0",
160160
"libxmljs2": "~0.37.0",
161161
"marsdb": "^0.6.11",
162162
"median": "^0.0.2",

routes/chatbot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import config from 'config'
1414
import download from 'download'
1515
import * as utils from '../lib/utils'
1616
import { isString } from 'lodash'
17-
import { Bot } from 'juicy-chat-bot'
17+
import Bot from 'juicy-chat-bot'
1818
import validateChatBot from '../lib/startup/validateChatBot'
1919
import * as security from '../lib/insecurity'
2020
import * as botUtils from '../lib/botUtils'

test/cypress/e2e/chatbot.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ describe('/chatbot', () => {
77
it('should be possible to kill the chatbot by setting the process to null', () => {
88
cy.visit('/profile')
99
cy.get('#username').type(
10-
'admin"); process=null; users.addUser("1337", "test'
10+
'admin"); processQuery=null; users.addUser("1337", "test'
1111
)
1212
cy.get('#submit').click()
1313
cy.visit('/#/chatbot')
@@ -33,7 +33,7 @@ describe('/chatbot', () => {
3333
}) => {
3434
cy.visit('/profile')
3535
cy.get('#username').type(
36-
"admin\"); process=(query, token)=>{ if (users.get(token)) { return model.process(trainingSet.lang, query) } else { return { action: 'unrecognized', body: 'user does not exist' }}}; users.addUser(\"1337\", \"test",
36+
"admin\"); processQuery=(query, token)=>{ if (users.get(token)) { return model.process(trainingSet.lang, query) } else { return { action: 'unrecognized', body: 'user does not exist' }}}; users.addUser(\"1337\", \"test",
3737
{ parseSpecialCharSequences: false }
3838
)
3939
cy.get('#submit').click()

0 commit comments

Comments
 (0)