Skip to content

Commit 1143880

Browse files
committed
test: update tests and snapshots
1 parent e31a6c7 commit 1143880

File tree

82 files changed

+11300
-11874
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+11300
-11874
lines changed

tests/unit/App.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ localVue.use(CoreuiVue)
1212

1313
describe('App.vue', () => {
1414
it('has a name', () => {
15-
expect(App.name).toMatch('app')
15+
expect(App.name).toBe('App')
1616
})
1717
it('is Vue instance', () => {
1818
const wrapper = shallowMount(App, {

tests/unit/containers/TheContainer.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ localVue.use(CoreuiVue)
1111

1212
describe('TheContainer.vue', () => {
1313
it('has a name', () => {
14-
expect(TheContainer.name).toMatch('full')
14+
expect(TheContainer.name).toBe('TheContainer')
1515
})
1616
test('renders correctly', () => {
1717
const wrapper = shallowMount(TheContainer, {

tests/unit/containers/TheHeaderDropdownAccnt.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Vue.use(CoreuiVue)
77

88
describe('TheHeaderDropdownAccnt.vue', () => {
99
it('has a name', () => {
10-
expect(TheHeaderDropdownAccnt.name).toMatch('TheHeaderDropdownAccnt')
10+
expect(TheHeaderDropdownAccnt.name).toBe('TheHeaderDropdownAccnt')
1111
})
1212
it('has a created hook', () => {
1313
expect(typeof TheHeaderDropdownAccnt.data).toMatch('function')

tests/unit/containers/TheSidebar.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Vue.use(CoreuiVue)
77

88
describe('TheSidebar.vue', () => {
99
it('has a name', () => {
10-
expect(TheSidebar.name).toMatch('TheSidebar')
10+
expect(TheSidebar.name).toBe('TheSidebar')
1111
})
1212
test('renders correctly', () => {
1313
const wrapper = shallowMount(TheSidebar)

tests/unit/containers/__snapshots__/DefaultContainer.spec.js.snap

Lines changed: 0 additions & 31 deletions
This file was deleted.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`TheContainer.vue renders correctly 1`] = `
4+
<div
5+
class="c-app"
6+
>
7+
<thesidebar-stub />
8+
9+
<div
10+
class="c-wrapper"
11+
>
12+
<theheader-stub />
13+
14+
<div
15+
class="c-body"
16+
>
17+
<main
18+
class="c-main"
19+
>
20+
<ccontainer-stub
21+
fluid="true"
22+
>
23+
<router-view-stub
24+
name="fade"
25+
/>
26+
</ccontainer-stub>
27+
</main>
28+
</div>
29+
30+
<thefooter-stub />
31+
</div>
32+
</div>
33+
`;

tests/unit/containers/__snapshots__/TheFooter.spec.js.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ exports[`TheFooter.vue renders correctly 1`] = `
1010
</a>
1111
1212
<span
13-
class="c-ml-1"
13+
class="ml-1"
1414
>
15-
© 2018 creativeLabs.
15+
© 2019 creativeLabs.
1616
</span>
1717
</div>
1818
1919
<div
20-
class="c-ml-auto"
20+
class="ml-auto"
2121
>
2222
<span
23-
class="c-mr-1"
23+
class="mr-1"
2424
>
2525
Powered by
2626
</span>

tests/unit/containers/__snapshots__/TheHeader.spec.js.snap

Lines changed: 42 additions & 113 deletions
Original file line numberDiff line numberDiff line change
@@ -3,153 +3,82 @@
33
exports[`TheHeader.vue renders correctly 1`] = `
44
<cheader-stub
55
fixed="true"
6+
light=""
7+
with-subheader=""
68
>
79
<csidebartoggler-stub
8-
class="c-header-toggler c-d-lg-none c-mr-auto"
10+
class="c-header-toggler ml-3"
911
/>
1012
11-
<clink-stub
12-
activeclass="c-active"
13-
class="c-header-brand,[object Object]"
14-
event="click"
15-
exactactiveclass="c-active"
16-
routertag="a"
17-
tag="span"
18-
target="_self"
19-
to="/"
20-
>
21-
<img
22-
alt="CoreUI Logo"
23-
class="c-navbar-brand-minimized c-d-md-down-none"
24-
height="30"
25-
src="img/brand/sygnet.svg"
26-
style="display: none;"
27-
width="30"
28-
/>
29-
30-
<img
31-
alt="CoreUI Logo"
32-
class="c-navbar-brand-full c-d-md-down-none"
33-
height="25"
34-
src="img/brand/logo.svg"
35-
width="89"
36-
/>
37-
38-
<img
39-
alt="CoreUI Logo"
40-
class="c-navbar-brand-full c-d-lg-none"
41-
height="25"
42-
src="img/brand/logo.svg"
43-
width="89"
44-
/>
45-
</clink-stub>
46-
47-
<csidebartoggler-stub
48-
class="c-header-toggler c-d-md-down-none"
13+
<img
14+
alt="CoreUI Logo"
15+
class="c-header-brand mx-auto d-lg-none"
16+
height="46"
17+
src="img/brand/coreui-base.svg"
18+
width="97"
4919
/>
5020
5121
<ul
52-
class="c-header-nav c-d-md-down-none"
22+
class="c-header-nav d-md-down-none mr-auto"
5323
>
54-
<cnavitem-stub
55-
activeclass="c-active"
56-
class="c-px-3"
57-
event="click"
58-
exactactiveclass="c-active"
59-
routertag="a"
60-
tag="span"
61-
target="_self"
24+
<cheadernavitem
25+
class="px-3"
6226
to="/dashboard"
6327
>
6428
Dashboard
65-
</cnavitem-stub>
29+
</cheadernavitem>
6630
67-
<cnavitem-stub
68-
activeclass="c-active"
69-
class="c-px-3"
70-
event="click"
71-
exact="true"
72-
exactactiveclass="c-active"
73-
routertag="a"
74-
tag="span"
75-
target="_self"
31+
<cheadernavitem
32+
class="px-3"
33+
exact=""
7634
to="/users"
7735
>
7836
Users
79-
</cnavitem-stub>
37+
</cheadernavitem>
8038
81-
<cnavitem-stub
82-
activeclass="c-active"
83-
class="c-px-3"
84-
event="click"
85-
exactactiveclass="c-active"
86-
routertag="a"
87-
tag="span"
88-
target="_self"
39+
<cheadernavitem
40+
class="px-3"
8941
>
9042
Settings
91-
</cnavitem-stub>
43+
</cheadernavitem>
9244
</ul>
9345
94-
<cnav-stub
95-
class="c-header-nav c-ml-auto"
46+
<ul
47+
class="c-header-nav mr-4"
9648
>
97-
<cnavitem-stub
98-
activeclass="c-active"
99-
class="c-d-md-down-none"
100-
event="click"
101-
exactactiveclass="c-active"
102-
routertag="a"
103-
tag="span"
104-
target="_self"
49+
<cheadernavitem
50+
class="d-md-down-none mx-2"
10551
>
10652
<i
10753
class="cui-bell"
10854
/>
109-
110-
<cbadge-stub
111-
activeclass="c-active"
112-
event="click"
113-
exactactiveclass="c-active"
114-
pill="true"
115-
routertag="a"
116-
tag="span"
117-
target="_self"
118-
variant="danger"
119-
>
120-
5
121-
</cbadge-stub>
122-
</cnavitem-stub>
55+
</cheadernavitem>
12356
124-
<cnavitem-stub
125-
activeclass="c-active"
126-
class="c-d-md-down-none"
127-
event="click"
128-
exactactiveclass="c-active"
129-
routertag="a"
130-
tag="span"
131-
target="_self"
57+
<cheadernavitem
58+
class="d-md-down-none mx-2"
13259
>
13360
<i
13461
class="cui-list"
13562
/>
136-
</cnavitem-stub>
63+
</cheadernavitem>
13764
138-
<cnavitem-stub
139-
activeclass="c-active"
140-
class="d-md-down-none"
141-
event="click"
142-
exactactiveclass="c-active"
143-
routertag="a"
144-
tag="span"
145-
target="_self"
65+
<cheadernavitem
66+
class="d-md-down-none mx-2"
14667
>
14768
<i
148-
class="cui-___location-pin"
69+
class="cui-envelope-open"
14970
/>
150-
</cnavitem-stub>
71+
</cheadernavitem>
15172
152-
<defaultheaderdropdownaccnt-stub />
153-
</cnav-stub>
73+
<theheaderdropdownaccnt-stub />
74+
</ul>
75+
76+
<div
77+
class="c-subheader px-3"
78+
>
79+
<cbreadcrumbrouter-stub
80+
class="border-0"
81+
/>
82+
</div>
15483
</cheader-stub>
15584
`;

0 commit comments

Comments
 (0)