Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
7d0a0fe4
Commit
7d0a0fe4
authored
Feb 12, 2020
by
Emily Ring
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup duplicate mock_data variables
parent
9cdfdb0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
20 deletions
+16
-20
ee/spec/frontend/environments/mock_data.js
ee/spec/frontend/environments/mock_data.js
+16
-20
No files found.
ee/spec/frontend/environments/mock_data.js
View file @
7d0a0fe4
...
...
@@ -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
),
},
];
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment