diff options
| author | Zog | 2018-01-31 15:10:40 +0100 |
|---|---|---|
| committer | cedricnjanga | 2018-02-06 11:04:59 -0800 |
| commit | a477a97347792540426aad79b1709dbb12aeb3c2 (patch) | |
| tree | 82ef5d4a93e7d77cfa0a8495d8dbcfb4db920874 /spec/javascript | |
| parent | 32bb2b43d463a071164a8e87a3e995f6ddceb17e (diff) | |
| download | chouette-core-a477a97347792540426aad79b1709dbb12aeb3c2.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: [{ |
