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
5104d6d5
Commit
5104d6d5
authored
Jun 01, 2020
by
Nick Kipling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Applying reviewer feedback
Applied patch to prefer object over array order
parent
abdc8e5e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
8 deletions
+16
-8
ee/spec/frontend/packages/details/components/dependency_row_spec.js
...ontend/packages/details/components/dependency_row_spec.js
+1
-1
ee/spec/frontend/packages/mock_data.js
ee/spec/frontend/packages/mock_data.js
+15
-7
No files found.
ee/spec/frontend/packages/details/components/dependency_row_spec.js
View file @
5104d6d5
...
@@ -5,7 +5,7 @@ import { dependencyLinks } from '../../mock_data';
...
@@ -5,7 +5,7 @@ import { dependencyLinks } from '../../mock_data';
describe
(
'
DependencyRow
'
,
()
=>
{
describe
(
'
DependencyRow
'
,
()
=>
{
let
wrapper
;
let
wrapper
;
const
[
withoutFramework
,
withoutVersion
,
fullLink
]
=
dependencyLinks
;
const
{
withoutFramework
,
withoutVersion
,
fullLink
}
=
dependencyLinks
;
function
createComponent
({
dependencyLink
=
fullLink
}
=
{})
{
function
createComponent
({
dependencyLink
=
fullLink
}
=
{})
{
wrapper
=
shallowMount
(
DependencyRow
,
{
wrapper
=
shallowMount
(
DependencyRow
,
{
...
...
ee/spec/frontend/packages/mock_data.js
View file @
5104d6d5
...
@@ -92,12 +92,20 @@ export const conanPackage = {
...
@@ -92,12 +92,20 @@ export const conanPackage = {
_links
,
_links
,
};
};
export
const
dependencyLinks
=
[
export
const
dependencyLinks
=
{
{
name
:
'
Moqi
'
,
version_pattern
:
'
2.5.6
'
},
withoutFramework
:
{
name
:
'
Moqi
'
,
version_pattern
:
'
2.5.6
'
},
{
name
:
'
Castle.Core
'
,
version_pattern
:
''
},
withoutVersion
:
{
name
:
'
Castle.Core
'
,
version_pattern
:
''
},
{
name
:
'
Test.Dependency
'
,
version_pattern
:
'
2.3.7
'
,
target_framework
:
'
.NETStandard2.0
'
},
fullLink
:
{
{
name
:
'
Newtonsoft.Json
'
,
version_pattern
:
'
12.0.3
'
,
target_framework
:
'
.NETStandard2.0
'
},
name
:
'
Test.Dependency
'
,
];
version_pattern
:
'
2.3.7
'
,
target_framework
:
'
.NETStandard2.0
'
,
},
anotherFullLink
:
{
name
:
'
Newtonsoft.Json
'
,
version_pattern
:
'
12.0.3
'
,
target_framework
:
'
.NETStandard2.0
'
,
},
};
export
const
nugetPackage
=
{
export
const
nugetPackage
=
{
created_at
:
'
2015-12-10
'
,
created_at
:
'
2015-12-10
'
,
...
@@ -109,7 +117,7 @@ export const nugetPackage = {
...
@@ -109,7 +117,7 @@ export const nugetPackage = {
tags
:
[],
tags
:
[],
updated_at
:
'
2015-12-10
'
,
updated_at
:
'
2015-12-10
'
,
version
:
'
1.0.0
'
,
version
:
'
1.0.0
'
,
dependency_links
:
dependencyLinks
,
dependency_links
:
Object
.
values
(
dependencyLinks
)
,
};
};
export
const
pypiPackage
=
{
export
const
pypiPackage
=
{
...
...
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