Commit 433ad2d0 authored by Phil Hughes's avatar Phil Hughes

karma fixes

parent 0531631c
......@@ -49,8 +49,8 @@ export default {
:title="$options.currentBranchPermissionsTooltip"
>
<span
v-html="commitToCurrentBranchText"
class="ide-radio-label"
v-html="commitToCurrentBranchText"
>
</span>
</radio-group>
......
......@@ -16,6 +16,7 @@ describe('IDE commit form', () => {
store.state.changedFiles.push('test');
store.state.currentProjectId = 'abcproject';
store.state.currentBranchId = 'master';
Vue.set(store.state.projects, 'abcproject', { ...projectData });
vm = createComponentWithStore(Component, store).$mount();
......
......@@ -13,6 +13,7 @@ describe('IDE commit message field', () => {
Component,
{
text: '',
placeholder: 'testing',
},
'#app',
);
......
......@@ -8,6 +8,7 @@ export const projectData = {
branches: {
master: {
treeId: 'abcproject/master',
can_push: true,
},
},
mergeRequests: {},
......
......@@ -146,13 +146,9 @@ describe('IDE store getters', () => {
it('returns the last commit of the current branch on the current project', () => {
const commitTitle = 'Example commit title';
const localGetters = {
currentProject: {
branches: {
'example-branch': {
commit: {
title: commitTitle,
},
},
currentBranch: {
commit: {
title: commitTitle,
},
},
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment