diff --git a/karma/flows/test_controllers.coffee b/karma/flows/test_controllers.coffee index 834b6dc9b9a..3caa1db9933 100644 --- a/karma/flows/test_controllers.coffee +++ b/karma/flows/test_controllers.coffee @@ -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()