Skip to content

Commit 125b74e

Browse files
committed
test: update unit tests
1 parent 1ee897e commit 125b74e

35 files changed

+199
-304
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
exports[`DefaultHeaderDropdownAccnt.vue renders correctly 1`] = `
44
<cdropdown-stub
55
addmenuclasses="c-dropdown-menu-right"
6-
buttonhtml="Dropdown"
76
nav="true"
87
nocaret="true"
98
nopopper="true"
10-
variant="primary"
9+
placement="bottom-start"
10+
togglertext="Dropdown"
1111
>
1212
1313
<cdropdownheader-stub

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

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,39 @@ exports[`TheHeader.vue renders correctly 1`] = `
55
fixed="true"
66
>
77
<csidebartoggler-stub
8-
class="c-header-toggler c-d-lg-none"
8+
class="c-header-toggler c-d-lg-none c-mr-auto"
99
/>
1010
1111
<clink-stub
1212
activeclass="c-active"
13-
class="c-header-brand"
13+
class="c-header-brand,[object Object]"
1414
event="click"
1515
exactactiveclass="c-active"
1616
routertag="a"
1717
tag="span"
1818
target="_self"
1919
to="/"
20-
variant="primary"
2120
>
2221
<img
2322
alt="CoreUI Logo"
24-
class="c-navbar-brand-full"
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"
2541
height="25"
2642
src="img/brand/logo.svg"
2743
width="89"
@@ -44,7 +60,6 @@ exports[`TheHeader.vue renders correctly 1`] = `
4460
tag="span"
4561
target="_self"
4662
to="/dashboard"
47-
variant="primary"
4863
>
4964
Dashboard
5065
</cnavitem-stub>
@@ -59,7 +74,6 @@ exports[`TheHeader.vue renders correctly 1`] = `
5974
tag="span"
6075
target="_self"
6176
to="/users"
62-
variant="primary"
6377
>
6478
Users
6579
</cnavitem-stub>
@@ -72,7 +86,6 @@ exports[`TheHeader.vue renders correctly 1`] = `
7286
routertag="a"
7387
tag="span"
7488
target="_self"
75-
variant="primary"
7689
>
7790
Settings
7891
</cnavitem-stub>
@@ -89,7 +102,6 @@ exports[`TheHeader.vue renders correctly 1`] = `
89102
routertag="a"
90103
tag="span"
91104
target="_self"
92-
variant="primary"
93105
>
94106
<i
95107
class="cui-bell"
@@ -117,7 +129,6 @@ exports[`TheHeader.vue renders correctly 1`] = `
117129
routertag="a"
118130
tag="span"
119131
target="_self"
120-
variant="primary"
121132
>
122133
<i
123134
class="cui-list"
@@ -132,7 +143,6 @@ exports[`TheHeader.vue renders correctly 1`] = `
132143
routertag="a"
133144
tag="span"
134145
target="_self"
135-
variant="primary"
136146
>
137147
<i
138148
class="cui-___location-pin"

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,17 @@ exports[`TheSidebar.vue renders correctly 1`] = `
1111
1212
<csidebarform-stub />
1313
14-
<csidebarnav-stub
15-
navitems="[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]"
16-
/>
14+
<csidebarnav-stub>
15+
<ctreegenerator-stub
16+
components="[object Object]"
17+
items="[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]"
18+
/>
19+
</csidebarnav-stub>
1720
1821
<csidebarfooter-stub />
1922
20-
<csidebarminimizer-stub />
23+
<csidebarminimizer-stub
24+
class="c-d-md-down-none"
25+
/>
2126
</csidebar-stub>
2227
`;

tests/unit/views/Dashboard.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Vue from 'vue'
2-
import { shallowMount, mount } from '@vue/test-utils'
2+
import { shallowMount } from '@vue/test-utils'
33
import CoreuiVue from '@coreui/vue'
44
import { CIconPlugin } from '@coreui/icons/vue'
55
import Dashboard from '@/views/Dashboard'

tests/unit/views/__snapshots__/Dashboard.spec.js.snap

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ exports[`Dashboard.vue renders correctly 1`] = `
234234
max="100"
235235
precision="1"
236236
value="40"
237-
variant="primary"
238237
/>
239238
</ccol-stub>
240239
</crow-stub>
@@ -941,8 +940,8 @@ exports[`Dashboard.vue renders correctly 1`] = `
941940
head-variant="light"
942941
hover="true"
943942
items="[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]"
944-
nosorting="true"
945-
perpage="10"
943+
itemsperpage="10"
944+
no-sorting=""
946945
/>
947946
</ccard-stub>
948947
</ccol-stub>

tests/unit/views/base/Forms.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Vue from 'vue'
2-
import { shallowMount, mount } from '@vue/test-utils'
2+
import { shallowMount } from '@vue/test-utils'
33
import CoreuiVue from '@coreui/vue'
44
import Forms from '@/views/base/Forms'
55

tests/unit/views/base/Jumbotrons.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Vue from 'vue'
2-
import { shallowMount, mount } from '@vue/test-utils'
2+
import { shallowMount } from '@vue/test-utils'
33
import CoreuiVue from '@coreui/vue'
44
import Jumbotrons from '@/views/base/Jumbotrons'
55

tests/unit/views/base/ListGroups.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Vue from 'vue'
2-
import { shallowMount, mount } from '@vue/test-utils'
2+
import { shallowMount } from '@vue/test-utils'
33
import CoreuiVue from '@coreui/vue'
44
import ListGroups from '@/views/base/ListGroups'
55

tests/unit/views/base/Navbars.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Vue from 'vue'
2-
import { shallowMount, mount } from '@vue/test-utils'
2+
import { shallowMount } from '@vue/test-utils'
33
import CoreuiVue from '@coreui/vue'
44
import Navbars from '@/views/base/Navbars'
55

tests/unit/views/base/Navs.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Vue from 'vue'
2-
import { shallowMount, mount } from '@vue/test-utils'
2+
import { shallowMount } from '@vue/test-utils'
33
import CoreuiVue from '@coreui/vue'
44
import Navs from '@/views/base/Navs'
55

0 commit comments

Comments
 (0)