aboutsummaryrefslogtreecommitdiffstats
path: root/spec/javascripts
diff options
context:
space:
mode:
authorThomas Haddad2017-01-30 15:32:51 +0100
committerThomas Haddad2017-01-30 15:32:51 +0100
commitda1f748fcdfd15c5b873de3d05dc1a1803bca047 (patch)
treef6b3a9e695a004b4e2c187dc24e44245b30936d8 /spec/javascripts
parent4684dfc6d3d442bc844c01d002c75abe11cc9fda (diff)
downloadchouette-core-da1f748fcdfd15c5b873de3d05dc1a1803bca047.tar.bz2
Refs #2406: Automatically fill sidebar when toggling map, and disable confirm button when stoparea already selected
Signed-off-by: Thomas Shawarma Haddad <thomas.haddad@af83.com>
Diffstat (limited to 'spec/javascripts')
-rw-r--r--spec/javascripts/itineraries/reducers/stop_points_spec.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/spec/javascripts/itineraries/reducers/stop_points_spec.js b/spec/javascripts/itineraries/reducers/stop_points_spec.js
index 72fbbeb6d..d6917f782 100644
--- a/spec/javascripts/itineraries/reducers/stop_points_spec.js
+++ b/spec/javascripts/itineraries/reducers/stop_points_spec.js
@@ -176,16 +176,19 @@ describe('stops reducer', () => {
index: 0,
text: {
text: "new value",
+ name: 'new',
stoparea_id: 1,
user_objectid: "1234",
longitude: 123,
- latitude: 123
+ latitude: 123,
+ registration_number: '0'
}
})
).toEqual(
[
{
text: 'new value',
+ name: 'new',
index: 0,
stoppoint_id: '',
stoparea_id: 1,
@@ -194,6 +197,7 @@ describe('stops reducer', () => {
user_objectid: "1234",
longitude: 123,
latitude: 123,
+ registration_number: '0',
olMap: {
isOpened: false,
json: {}
@@ -262,7 +266,13 @@ describe('stops reducer', () => {
for_alighting: 'normal',
olMap: {
isOpened: true,
- json: {}
+ json: {
+ text: 'first',
+ index: 0,
+ for_boarding: 'normal',
+ for_alighting: 'normal',
+ olMap: undefined
+ }
}
},
{