diff options
| author | Zog | 2018-01-31 15:10:40 +0100 | 
|---|---|---|
| committer | Zog | 2018-01-31 15:10:40 +0100 | 
| commit | 90f54f0acfe65ff276a229239809ce0e9fddf0b0 (patch) | |
| tree | 14f213ef05f8a9ccc97155e1e060947f370dc157 /spec/javascript | |
| parent | e91ce59d625734a0936a434b9e45fb2c48f0a5f8 (diff) | |
| download | chouette-core-90f54f0acfe65ff276a229239809ce0e9fddf0b0.tar.bz2 | |
Fix specs
Diffstat (limited to 'spec/javascript')
| -rw-r--r-- | spec/javascript/vehicle_journeys/actions_spec.js | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/spec/javascript/vehicle_journeys/actions_spec.js b/spec/javascript/vehicle_journeys/actions_spec.js index d486c9af8..9710d833c 100644 --- a/spec/javascript/vehicle_journeys/actions_spec.js +++ b/spec/javascript/vehicle_journeys/actions_spec.js @@ -1,6 +1,7 @@  import actions from '../../../app/javascript/vehicle_journeys/actions/index'  const dispatch = function(){} +window.fetch = function(){return Promise.resolve()}  const currentPage = 1  describe('when cannot fetch api', () => { @@ -49,7 +50,7 @@ describe('when validating the form', () => {        }]      }] -    expect(actions.validate(dispatch, state)).toEqual(false) +    expect(actions.validate(dispatch, state)).toEqual(true)      state = [{        vehicle_journey_at_stops: [{ | 
