summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Provaznik <jprovaznik@gitlab.com>2018-10-15 16:25:39 +0200
committerJan Provaznik <jprovaznik@gitlab.com>2018-10-15 16:25:39 +0200
commitfcd7c7b5e18946d5f4ec297aff749a587e45b5b1 (patch)
treeb1dc827abdb5dab1a5448c60eec0f8874311e4fc
parent1c893059abf19e85d1d3ee5b3d8e3962dffc9284 (diff)
downloadgitlab-ce-11-4-stable-prepare-rc6.tar.gz
Fixed syntax issues in specs11-4-stable-prepare-rc6
-rw-r--r--app/assets/javascripts/jobs/job_details_bundle.js2
-rw-r--r--spec/javascripts/jobs/components/stages_dropdown_spec.js2
-rw-r--r--spec/javascripts/jobs/store/actions_spec.js2
-rw-r--r--spec/javascripts/jobs/store/mutations_spec.js4
4 files changed, 4 insertions, 6 deletions
diff --git a/app/assets/javascripts/jobs/job_details_bundle.js b/app/assets/javascripts/jobs/job_details_bundle.js
index 15cd79b1c50..a4926c8e1d2 100644
--- a/app/assets/javascripts/jobs/job_details_bundle.js
+++ b/app/assets/javascripts/jobs/job_details_bundle.js
@@ -9,8 +9,6 @@ import createStore from './store';
export default () => {
const { dataset } = document.getElementById('js-job-details-vue');
-
-
const store = createStore();
store.dispatch('setJobEndpoint', dataset.endpoint);
diff --git a/spec/javascripts/jobs/components/stages_dropdown_spec.js b/spec/javascripts/jobs/components/stages_dropdown_spec.js
index fcff78b943e..9c731ae2f68 100644
--- a/spec/javascripts/jobs/components/stages_dropdown_spec.js
+++ b/spec/javascripts/jobs/components/stages_dropdown_spec.js
@@ -31,7 +31,7 @@ describe('Stages Dropdown', () => {
name: 'test',
},
],
- selectedStage: 'deploy'
+ selectedStage: 'deploy',
});
});
diff --git a/spec/javascripts/jobs/store/actions_spec.js b/spec/javascripts/jobs/store/actions_spec.js
index bc410ae614c..2bb9fdaabd0 100644
--- a/spec/javascripts/jobs/store/actions_spec.js
+++ b/spec/javascripts/jobs/store/actions_spec.js
@@ -424,7 +424,7 @@ describe('Job State actions', () => {
mockedState.job.pipeline = {
path: `${TEST_HOST}/endpoint`,
};
- mockedState.selectedStage = 'deploy'
+ mockedState.selectedStage = 'deploy';
mock = new MockAdapter(axios);
});
diff --git a/spec/javascripts/jobs/store/mutations_spec.js b/spec/javascripts/jobs/store/mutations_spec.js
index 701fcc7f4c8..d857c116180 100644
--- a/spec/javascripts/jobs/store/mutations_spec.js
+++ b/spec/javascripts/jobs/store/mutations_spec.js
@@ -130,7 +130,7 @@ describe('Jobs Store Mutations', () => {
});
it('does not set selectedStage when the selectedStage is not More', () => {
- stateCopy.selectedStage = 'notify'
+ stateCopy.selectedStage = 'notify';
expect(stateCopy.selectedStage).toEqual('notify');
mutations[types.RECEIVE_JOB_SUCCESS](stateCopy, { id: 1312321, stage: 'deploy' });
expect(stateCopy.selectedStage).toEqual('notify');
@@ -219,7 +219,7 @@ describe('Jobs Store Mutations', () => {
it('sets selectedStage', () => {
mutations[types.REQUEST_JOBS_FOR_STAGE](stateCopy, { name: 'deploy' });
expect(stateCopy.selectedStage).toEqual('deploy');
- })
+ });
});
describe('RECEIVE_JOBS_FOR_STAGE_SUCCESS', () => {