Skip to content

Commit

Permalink
Add test request get intents flow controller
Browse files Browse the repository at this point in the history
  • Loading branch information
vctrferreira committed Nov 8, 2017
1 parent 01ecf9b commit 0252986
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions karma/flows/test_controllers.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ describe 'Controllers:', ->
$http.whenGET('/contactfield/json/').respond([])
$http.whenGET('/label/').respond([])

$http.whenGET('/flow/nlu/').respond({"intents": [
{"bot_name": "bot-slug-92", "name": "greet", "bot_id": "706e1467-fa55-4562-b909-e09caca9b198"},
{"bot_name": "bot-slug-92", "name": "affirm", "bot_id": "706e1467-fa55-4562-b909-e09caca9b198"},
{"bot_name": "bot-slug-92", "name": "restaurant_search", "bot_id": "706e1467-fa55-4562-b909-e09caca9b198"},
{"bot_name": "bot-slug-92", "name": "goodbye", "bot_id": "706e1467-fa55-4562-b909-e09caca9b198"}]})

for file, config of flows

$http.whenPOST('/flow/json/' + config.id + '/').respond()
Expand Down

0 comments on commit 0252986

Please sign in to comment.