Commit 7d0a0fe4 authored by Emily Ring's avatar Emily Ring

Cleanup duplicate mock_data variables

parent 9cdfdb0a
......@@ -101,38 +101,34 @@ export const environment = {
updated_at: '2016-11-10T15:55:58.778Z',
};
const sharedEnvironmentData = id => ({
environment_path: `/root/review-app/environments/${id}`,
external_url: null,
folderName: 'build',
has_stop_action: false,
id,
last_deployment: null,
project_path: '/root/review-app',
rollout_status: {},
state: 'available',
stop_path: `/root/review-app/environments/${id}/stop`,
});
export const environmentsList = [
{
name: 'DEV',
size: 1,
id: 7,
state: 'available',
external_url: null,
environment_type: null,
last_deployment: null,
has_stop_action: false,
environment_path: '/root/review-app/environments/7',
stop_path: '/root/review-app/environments/7/stop',
created_at: '2017-01-31T10:53:46.894Z',
updated_at: '2017-01-31T10:53:46.894Z',
project_path: '/root/review-app',
rollout_status: {},
...sharedEnvironmentData(7),
},
{
folderName: 'build',
size: 5,
id: 12,
name: 'build/update-README',
state: 'available',
external_url: null,
size: 5,
environment_type: 'build',
last_deployment: null,
has_stop_action: false,
environment_path: '/root/review-app/environments/12',
stop_path: '/root/review-app/environments/12/stop',
created_at: '2017-02-01T19:42:18.400Z',
updated_at: '2017-02-01T19:42:18.400Z',
project_path: '/root/review-app',
rollout_status: {},
...sharedEnvironmentData(12),
},
];
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