Skip to content

Commit 8a6a1bc

Browse files
committed
test: update smome snapshots and tests
1 parent 06a0f01 commit 8a6a1bc

File tree

5 files changed

+18
-20
lines changed

5 files changed

+18
-20
lines changed

src/components/__tests__/SidebarNavDivider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ describe("SidebarNavDivider.vue", () => {
1010
it('renders correctly', () => {
1111
const wrapper = mount(SidebarNavDivider)
1212
expect(wrapper.element).toMatchSnapshot()
13-
expect(wrapper.classes()).toContain('divider')
13+
expect(wrapper.classes()).toContain('nav-divider')
1414
})
1515
});

src/components/__tests__/SidebarNavLink.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ describe("SidebarNavLink.vue", () => {
4141
it('renders correctly', () => {
4242
const wrapper = shallowMount(SidebarNavLink, { localVue, router })
4343
expect(wrapper.element).toMatchSnapshot()
44-
expect(wrapper.is('div')).toBe(true)
44+
expect(wrapper.is('router-link-stub')).toBe(true)
4545
})
4646
});

src/components/__tests__/__snapshots__/HeaderDropdown.js.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`HeaderDropdown.vue renders correctly 1`] = `
4-
<b-nav-item-dropdown-stub>
4+
<b-nav-item-dropdown>
55
<template>
66
77
@@ -17,5 +17,5 @@ exports[`HeaderDropdown.vue renders correctly 1`] = `
1717
dropdown
1818
</span>
1919
</div>
20-
</b-nav-item-dropdown-stub>
20+
</b-nav-item-dropdown>
2121
`;

src/components/__tests__/__snapshots__/SidebarNavDivider.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
exports[`SidebarNavDivider.vue renders correctly 1`] = `
44
<li
5-
class="divider"
5+
class="nav-divider"
66
/>
77
`;
Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`SidebarNavLink.vue renders correctly 1`] = `
4-
<div>
5-
<router-link-stub
6-
class="nav-link"
7-
event="click"
8-
tag="a"
9-
to=""
10-
>
11-
<i
12-
class="nav-icon"
13-
/>
14-
15-
16-
<!---->
17-
</router-link-stub>
18-
</div>
4+
<router-link-stub
5+
class="nav-link"
6+
event="click"
7+
tag="a"
8+
to=""
9+
>
10+
<i
11+
class="nav-icon"
12+
/>
13+
14+
15+
<!---->
16+
</router-link-stub>
1917
`;

0 commit comments

Comments
 (0)