Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2018-10-11 15:39:20 +0300
committerFilipa Lacerda <filipa@gitlab.com>2018-10-11 16:29:35 +0300
commit0073be9bf70f79ece094a28ed4d897636ba8ddc8 (patch)
tree47d17742a3a1959b37454986e9f605906af65dec /spec
parentc230b5d16fcbb9e93647642c5aaa6f884cb6bfe9 (diff)
Adds `.json` to the end of pipelines endpoint
When the job page is rendered we fetch the pipeline endpoint to render the stages in the sidebar. Without `.json` the response is cached, and when the user goes back to the pipeline's page it renders the json output instead of the Vue app
Diffstat (limited to 'spec')
-rw-r--r--spec/javascripts/jobs/store/actions_spec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/javascripts/jobs/store/actions_spec.js b/spec/javascripts/jobs/store/actions_spec.js
index 5ab1f75d0d6..ce07effba9e 100644
--- a/spec/javascripts/jobs/store/actions_spec.js
+++ b/spec/javascripts/jobs/store/actions_spec.js
@@ -422,7 +422,7 @@ describe('Job State actions', () => {
beforeEach(() => {
mockedState.job.pipeline = {
- path: `${TEST_HOST}/endpoint.json/stages`,
+ path: `${TEST_HOST}/endpoint`,
};
mock = new MockAdapter(axios);
});
@@ -434,7 +434,7 @@ describe('Job State actions', () => {
describe('success', () => {
it('dispatches requestStages and receiveStagesSuccess, fetchJobsForStage ', done => {
mock
- .onGet(`${TEST_HOST}/endpoint.json/stages`)
+ .onGet(`${TEST_HOST}/endpoint.json`)
.replyOnce(200, { details: { stages: [{ id: 121212, name: 'build' }] } });
testAction(