Skip to content

Commit

Permalink
Add test request get intents
Browse files Browse the repository at this point in the history
  • Loading branch information
vctrferreira committed Nov 8, 2017
1 parent ac29bca commit 01ecf9b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions karma/flows/test_services.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ describe 'Services:', ->
$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.whenGET('/flow/json/' + config.id + '/').respond(
Expand Down

0 comments on commit 01ecf9b

Please sign in to comment.