Commit fe6a0fbe authored by Phil Hughes's avatar Phil Hughes

Merge branch '2514-deploy-board' into 'master'

Fixes deploy board error spec

Closes #2514

See merge request !2064
parents 497a1286 1f60f2af
import Vue from 'vue';
import environmentTableComp from '~/environments/components/environments_table.vue';
import { deployBoardMockData } from './mock_data';
describe('Environment item', () => {
let EnvironmentTable;
......@@ -40,15 +41,7 @@ describe('Environment item', () => {
id: 1,
rollout_status_path: 'url',
hasDeployBoard: true,
deployBoardData: {
instances: [
{ status: 'ready', tooltip: 'foo' },
],
abort_url: 'url',
rollback_url: 'url',
completion: 100,
is_completed: true,
},
deployBoardData: deployBoardMockData,
isDeployBoardVisible: true,
};
......@@ -60,7 +53,9 @@ describe('Environment item', () => {
canReadEnvironment: true,
toggleDeployBoard: () => {},
store: {},
service: {},
service: {
getDeployBoard: () => Promise.resolve(),
},
},
}).$mount();
......@@ -100,7 +95,9 @@ describe('Environment item', () => {
canReadEnvironment: true,
toggleDeployBoard: spy,
store: {},
service: {},
service: {
getDeployBoard: () => Promise.resolve(),
},
},
}).$mount();
......
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