diff options
Diffstat (limited to 'spec/javascripts')
| -rw-r--r-- | spec/javascripts/journey_patterns/actions_spec.js | 6 |
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', () => { |
