aboutsummaryrefslogtreecommitdiffstats
path: root/spec/javascript
diff options
context:
space:
mode:
authorZog2018-01-09 16:39:44 +0100
committerZog2018-01-09 16:39:44 +0100
commit2b72125bd3f3393c92b4e3d8680eb0ea9aa40e6e (patch)
treeb2b50919a882539046fd629322c8a91de6b3b2dd /spec/javascript
parenta0e05d7b2d9be6f52d88f365739ca2eab406a2f2 (diff)
downloadchouette-core-2b72125bd3f3393c92b4e3d8680eb0ea9aa40e6e.tar.bz2
Refs #5502 @4h; Don't use Ajax in JP selector in VJs editor5502-remove-search-from-selects
When the number of possible values is low (<10), display the values right away, don't use an Ajax query
Diffstat (limited to 'spec/javascript')
-rw-r--r--spec/javascript/vehicle_journeys/actions_spec.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/javascript/vehicle_journeys/actions_spec.js b/spec/javascript/vehicle_journeys/actions_spec.js
index 2f1daf0da..9515b57f2 100644
--- a/spec/javascript/vehicle_journeys/actions_spec.js
+++ b/spec/javascript/vehicle_journeys/actions_spec.js
@@ -42,6 +42,7 @@ describe('when using select2 to pick a journey pattern', () => {
let selectedJP = {
id: 1,
object_id: 2,
+ short_id: 2,
name: 'test',
published_name: 'test',
stop_area_short_descriptions: ['test']
@@ -51,6 +52,7 @@ describe('when using select2 to pick a journey pattern', () => {
selectedItem:{
id: selectedJP.id,
objectid: selectedJP.object_id,
+ short_id: selectedJP.object_id,
name: selectedJP.name,
published_name: selectedJP.published_name,
stop_areas: selectedJP.stop_area_short_descriptions