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
e872add2
Commit
e872add2
authored
Mar 28, 2022
by
Olena Horal-Koretska
Committed by
Mark Florian
Apr 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix failing specs
parent
9063de26
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
spec/frontend/packages_and_registries/shared/components/__snapshots__/registry_breadcrumb_spec.js.snap
...components/__snapshots__/registry_breadcrumb_spec.js.snap
+5
-5
spec/frontend/packages_and_registries/shared/components/registry_breadcrumb_spec.js
..._registries/shared/components/registry_breadcrumb_spec.js
+4
-4
No files found.
spec/frontend/packages_and_registries/shared/components/__snapshots__/registry_breadcrumb_spec.js.snap
View file @
e872add2
...
...
@@ -10,11 +10,10 @@ exports[`Registry Breadcrumb when is not rootRoute renders 1`] = `
class="breadcrumb gl-breadcrumb-list"
>
<li
class="
breadcrumb-item
gl-breadcrumb-item"
class="gl-breadcrumb-item"
>
<a
class=""
href="/"
target="_self"
>
<span>
...
...
@@ -45,9 +44,10 @@ exports[`Registry Breadcrumb when is not rootRoute renders 1`] = `
<!---->
<li
class="
breadcrumb-item
gl-breadcrumb-item"
class="gl-breadcrumb-item"
>
<a
aria-current="page"
class=""
href="#"
target="_self"
...
...
@@ -75,11 +75,11 @@ exports[`Registry Breadcrumb when is rootRoute renders 1`] = `
class="breadcrumb gl-breadcrumb-list"
>
<li
class="
breadcrumb-item
gl-breadcrumb-item"
class="gl-breadcrumb-item"
>
<a
aria-current="page"
class=""
href="/"
target="_self"
>
<span>
...
...
spec/frontend/packages_and_registries/shared/components/registry_breadcrumb_spec.js
View file @
e872add2
import
{
mount
}
from
'
@vue/test-utils
'
;
import
{
mount
,
RouterLinkStub
}
from
'
@vue/test-utils
'
;
import
component
from
'
~/packages_and_registries/shared/components/registry_breadcrumb.vue
'
;
...
...
@@ -21,6 +21,9 @@ describe('Registry Breadcrumb', () => {
},
},
},
stubs
:
{
RouterLink
:
RouterLinkStub
,
},
});
};
...
...
@@ -30,7 +33,6 @@ describe('Registry Breadcrumb', () => {
afterEach
(()
=>
{
wrapper
.
destroy
();
wrapper
=
null
;
});
describe
(
'
when is rootRoute
'
,
()
=>
{
...
...
@@ -46,7 +48,6 @@ describe('Registry Breadcrumb', () => {
const
links
=
wrapper
.
findAll
(
'
a
'
);
expect
(
links
).
toHaveLength
(
1
);
expect
(
links
.
at
(
0
).
attributes
(
'
href
'
)).
toBe
(
'
/
'
);
});
it
(
'
the link text is calculated by nameGenerator
'
,
()
=>
{
...
...
@@ -67,7 +68,6 @@ describe('Registry Breadcrumb', () => {
const
links
=
wrapper
.
findAll
(
'
a
'
);
expect
(
links
).
toHaveLength
(
2
);
expect
(
links
.
at
(
0
).
attributes
(
'
href
'
)).
toBe
(
'
/
'
);
expect
(
links
.
at
(
1
).
attributes
(
'
href
'
)).
toBe
(
'
#
'
);
});
...
...
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