aboutsummaryrefslogtreecommitdiffstats
path: root/spec/javascripts
diff options
context:
space:
mode:
authorTeddy Wing2017-05-22 15:27:50 +0200
committerTeddy Wing2017-05-22 15:40:01 +0200
commitb8bc80a30cdee3448cb97483451a16573ee7bc26 (patch)
tree4a80c7257cd54db254de5751604fb54120b21552 /spec/javascripts
parenta6aae5dc43eb89ba7ebc5f794f03ce722986957a (diff)
downloadchouette-core-b8bc80a30cdee3448cb97483451a16573ee7bc26.tar.bz2
vehicle_journeys: Initialize `withoutTimeTable` to `false`
This filter, currently called "Afficher les courses sans calendrier", needs to not do anything by default and be set to "Non". When toggled to "Oui", it should filter to show only the vehicle journeys that have no associated calendar. Change the toggle and the initial value of the state variable that it's backed by to "Non" and `false` to reflect this definition. See 44712fe052e0c554c0510d4665a35c66540ffa05 and a6aae5dc43eb89ba7ebc5f794f03ce722986957a for more information. Refs #3427
Diffstat (limited to 'spec/javascripts')
-rw-r--r--spec/javascripts/vehicle_journeys/reducers/filters_spec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/javascripts/vehicle_journeys/reducers/filters_spec.js b/spec/javascripts/vehicle_journeys/reducers/filters_spec.js
index 0a6729c8b..2ab88386a 100644
--- a/spec/javascripts/vehicle_journeys/reducers/filters_spec.js
+++ b/spec/javascripts/vehicle_journeys/reducers/filters_spec.js
@@ -31,7 +31,7 @@ describe('filters reducer', () => {
vehicleJourney: {},
timetable: {},
withoutSchedule: true,
- withoutTimeTable: true
+ withoutTimeTable: false
},
queryString: ''
}
@@ -153,7 +153,7 @@ describe('filters reducer', () => {
"&q%5Bvehicle_journey_at_stops_departure_time_gteq%5D=11%3A11",
"&q%5Bvehicle_journey_at_stops_departure_time_lteq%5D=22%3A22",
"&q%5Bvehicle_journey_without_departure_time%5D=true",
- "&q%5Bvehicle_journey_without_time_table%5D=true"
+ "&q%5Bvehicle_journey_without_time_table%5D=false"
].join('')
expect(