aboutsummaryrefslogtreecommitdiffstats
path: root/spec/javascripts
diff options
context:
space:
mode:
authorThomas Haddad2017-05-05 15:33:40 +0200
committerThomas Haddad2017-05-05 15:34:06 +0200
commitef13c897645ed2397db3fede5257a41f62ca9c39 (patch)
tree4569b2c9337ccdb3037fe142b46fd952ba996a4a /spec/javascripts
parentd0ebc8b7055fcf4afc749400c8c348beca835c1b (diff)
downloadchouette-core-ef13c897645ed2397db3fede5257a41f62ca9c39.tar.bz2
Js gardening in timetable actions & action specs
Signed-off-by: Thomas Shawarma Haddad <thomas.haddad@af83.com>
Diffstat (limited to 'spec/javascripts')
-rw-r--r--spec/javascripts/time_table/actions_spec.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/javascripts/time_table/actions_spec.js b/spec/javascripts/time_table/actions_spec.js
index 73b2d2ac9..a8abd8f90 100644
--- a/spec/javascripts/time_table/actions_spec.js
+++ b/spec/javascripts/time_table/actions_spec.js
@@ -171,10 +171,9 @@ describe('actions', () => {
const expectedAction = {
type: 'INCLUDE_DATE_IN_PERIOD',
index,
- day,
dayTypes
}
- expect(actions.includeDateInPeriod(index, day, dayTypes)).toEqual(expectedAction)
+ expect(actions.includeDateInPeriod(index, dayTypes)).toEqual(expectedAction)
})
it('should create an action to exclude date from period', () => {
@@ -182,10 +181,9 @@ describe('actions', () => {
const expectedAction = {
type: 'EXCLUDE_DATE_FROM_PERIOD',
index,
- day,
dayTypes
}
- expect(actions.excludeDateFromPeriod(index, day, dayTypes)).toEqual(expectedAction)
+ expect(actions.excludeDateFromPeriod(index, dayTypes)).toEqual(expectedAction)
})
it('should create an action to open confirm modal', () => {