aboutsummaryrefslogtreecommitdiffstats
path: root/spec/javascripts
diff options
context:
space:
mode:
authorcedricnjanga2017-08-14 15:04:52 +0200
committercedricnjanga2017-08-16 09:28:48 +0200
commitefbd9f90ae41b357ad8559fbc3b29fc59524bb73 (patch)
tree40e0baefe7c2b91456606747e7b820f1379483ee /spec/javascripts
parentd1c1e5628679ee41956d0b05e24807ef84b98928 (diff)
downloadchouette-core-efbd9f90ae41b357ad8559fbc3b29fc59524bb73.tar.bz2
Timetable Period form update
Diffstat (limited to 'spec/javascripts')
-rw-r--r--spec/javascripts/time_table/actions_spec.js6
-rw-r--r--spec/javascripts/time_table/reducers/modal_spec.js6
-rw-r--r--spec/javascripts/time_table/reducers/timetable_spec.js2
3 files changed, 7 insertions, 7 deletions
diff --git a/spec/javascripts/time_table/actions_spec.js b/spec/javascripts/time_table/actions_spec.js
index 01e5ba0f7..d3618834a 100644
--- a/spec/javascripts/time_table/actions_spec.js
+++ b/spec/javascripts/time_table/actions_spec.js
@@ -157,16 +157,16 @@ describe('actions', () => {
it('should create an action to validate period form', () => {
let modalProps = {}
let timeTablePeriods = []
- let timeTableDates = []
let metas = {}
+ let currentMonthDaysIn = []
const expectedAction = {
type: 'VALIDATE_PERIOD_FORM',
modalProps,
timeTablePeriods,
metas,
- timeTableDates
+ currentMonthDaysIn
}
- expect(actions.validatePeriodForm(modalProps, timeTablePeriods, metas, timeTableDates)).toEqual(expectedAction)
+ expect(actions.validatePeriodForm(modalProps, timeTablePeriods, metas, currentMonthDaysIn)).toEqual(expectedAction)
})
it('should create an action to include date in period', () => {
diff --git a/spec/javascripts/time_table/reducers/modal_spec.js b/spec/javascripts/time_table/reducers/modal_spec.js
index 8e9ebcd11..f125052b3 100644
--- a/spec/javascripts/time_table/reducers/modal_spec.js
+++ b/spec/javascripts/time_table/reducers/modal_spec.js
@@ -177,7 +177,7 @@ describe('modal reducer', () => {
type: 'VALIDATE_PERIOD_FORM',
modalProps : modProps,
timeTablePeriods: ttperiods,
- timeTableDates: ttdates
+ currentMonthDaysIn: ttdates
})
).toEqual(Object.assign({}, state, {modalProps: newModalProps}))
})
@@ -247,7 +247,7 @@ describe('modal reducer', () => {
type: 'VALIDATE_PERIOD_FORM',
modalProps : modProps2,
timeTablePeriods: ttperiods2,
- timeTableDates: ttdates2
+ currentMonthDaysIn: ttdates2
})
).toEqual(Object.assign({}, state2, {modalProps: newModalProps2}))
})
@@ -312,7 +312,7 @@ describe('modal reducer', () => {
type: 'VALIDATE_PERIOD_FORM',
modalProps : modProps3,
timeTablePeriods: ttperiods3,
- timeTableDates: ttdates3
+ currentMonthDaysIn: ttdates3
})
).toEqual(Object.assign({}, state3, {modalProps: newModalProps3}))
})
diff --git a/spec/javascripts/time_table/reducers/timetable_spec.js b/spec/javascripts/time_table/reducers/timetable_spec.js
index d9cc2fc07..b832c0a86 100644
--- a/spec/javascripts/time_table/reducers/timetable_spec.js
+++ b/spec/javascripts/time_table/reducers/timetable_spec.js
@@ -182,7 +182,7 @@ describe('timetable reducer with filled state', () => {
metas: {
day_types: arrDayTypes
},
- timeTableDates: state.time_table_dates
+ currentMonthDaysIn: time_table_dates
})
).toEqual(state)
})