aboutsummaryrefslogtreecommitdiffstats
path: root/spec/javascripts/journey_patterns
diff options
context:
space:
mode:
authorThomas Haddad2017-01-06 16:54:00 +0100
committerThomas Haddad2017-01-06 16:54:00 +0100
commitb6cd50e722136033c0e579ebfadd855d5fe7de7d (patch)
tree50ebe0809320f809d7fcaa75cdf51d0518a1d10b /spec/javascripts/journey_patterns
parent41ad9d403a69bf36a01a7c61df1a08c0e41a6284 (diff)
downloadchouette-core-b6cd50e722136033c0e579ebfadd855d5fe7de7d.tar.bz2
Remove unused argument in deleteJourneyPattern
Signed-off-by: Thomas Shawarma Haddad <thomas.haddad@af83.com>
Diffstat (limited to 'spec/javascripts/journey_patterns')
-rw-r--r--spec/javascripts/journey_patterns/actions_spec.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/javascripts/journey_patterns/actions_spec.js b/spec/javascripts/journey_patterns/actions_spec.js
index 6c23b722c..ced053935 100644
--- a/spec/javascripts/journey_patterns/actions_spec.js
+++ b/spec/javascripts/journey_patterns/actions_spec.js
@@ -93,13 +93,11 @@ describe('when clicking on close button inside edit or add modal', () => {
describe('when clicking on a journey pattern delete button', () => {
it('should create an action to delete journey pattern', () => {
const index = 1
- const journeyPattern = {}
const expectedAction = {
type: 'DELETE_JOURNEYPATTERN',
- index,
- journeyPattern
+ index
}
- expect(actions.deleteJourneyPattern(index, journeyPattern)).toEqual(expectedAction)
+ expect(actions.deleteJourneyPattern(index)).toEqual(expectedAction)
})
})
describe('when clicking on validate button inside edit modal', () => {