Skip to content
Snippets Groups Projects
Commit fcd7c7b5 authored by Jan Provaznik's avatar Jan Provaznik
Browse files

Fixed syntax issues in specs

parent 1c893059
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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);
 
Loading
Loading
Loading
Loading
@@ -31,7 +31,7 @@ describe('Stages Dropdown', () => {
name: 'test',
},
],
selectedStage: 'deploy'
selectedStage: 'deploy',
});
});
 
Loading
Loading
Loading
Loading
@@ -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);
});
 
Loading
Loading
Loading
Loading
@@ -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');
Loading
Loading
@@ -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', () => {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment