diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-07-19 16:10:25 +0100 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2018-07-20 16:19:50 +0100 |
commit | 04b473b68969a57d7c5fa33fe46c18bd9ee6bddf (patch) | |
tree | 8a5f175377d08885012677a83a2a1b72a4d6a3c2 | |
parent | a3eb4001181d6d0ae8f3a62d0452a06f67500cc6 (diff) | |
download | gitlab-ce-04b473b68969a57d7c5fa33fe46c18bd9ee6bddf.tar.gz |
Adds payload to the fetchReports success spec
-rw-r--r-- | spec/javascripts/reports/store/actions_spec.js | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/spec/javascripts/reports/store/actions_spec.js b/spec/javascripts/reports/store/actions_spec.js index 887b1cc8b84..b558a308133 100644 --- a/spec/javascripts/reports/store/actions_spec.js +++ b/spec/javascripts/reports/store/actions_spec.js @@ -65,6 +65,7 @@ describe('Reports Store Actions', () => { [], [ { + payload: { summary: {}, suites: [{ name: 'rspec' }] }, type: 'requestReports', }, { @@ -99,27 +100,6 @@ describe('Reports Store Actions', () => { ); }); }); - - describe('no content', () => { - beforeEach(() => { - mock.onGet(`${TEST_HOST}/endpoint.json`).reply(204); - }); - - it('dispatches requestReports and keeps polling ', done => { - testAction( - fetchReports, - null, - mockedState, - [], - [ - { - type: 'requestReports', - }, - ], - done, - ); - }); - }); }); describe('receiveReportsSuccess', () => { |