Commit e872add2 authored by Olena Horal-Koretska's avatar Olena Horal-Koretska Committed by Mark Florian

Fix failing specs

parent 9063de26
......@@ -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>
......
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('#');
});
......
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