test: update unit tests

This commit is contained in:
woothu
2019-08-27 11:02:15 +02:00
parent 1ee897e7b6
commit 125b74ef24
35 changed files with 281 additions and 386 deletions
@@ -78,12 +78,10 @@ exports[`Breadcrumbs.vue renders correctly 1`] = `
</a>
</li>
<li
class="c-breadcrumb-item c-active"
class="c-active c-breadcrumb-item"
role="presentation"
>
<span
class=""
>
<span>
Library
</span>
</li>
@@ -129,12 +127,10 @@ exports[`Breadcrumbs.vue renders correctly 1`] = `
</a>
</li>
<li
class="c-breadcrumb-item c-active"
class="c-active c-breadcrumb-item"
role="presentation"
>
<span
class=""
>
<span>
Current page
</span>
</li>
@@ -144,11 +140,11 @@ exports[`Breadcrumbs.vue renders correctly 1`] = `
class="c-breadcrumb"
>
<li
class="c-breadcrumb-item"
class="c-font-xl c-breadcrumb-item"
role="presentation"
>
<a
class="c-font-xl"
class=""
href="#"
target="_self"
>
@@ -156,11 +152,11 @@ exports[`Breadcrumbs.vue renders correctly 1`] = `
</a>
</li>
<li
class="c-breadcrumb-item"
class="c-font-xl c-breadcrumb-item"
role="presentation"
>
<a
class="c-font-xl"
class=""
href="#"
target="_self"
>
@@ -168,12 +164,10 @@ exports[`Breadcrumbs.vue renders correctly 1`] = `
</a>
</li>
<li
class="c-breadcrumb-item c-active"
class="c-active c-font-xl c-text-danger c-breadcrumb-item"
role="presentation"
>
<span
class="c-font-xl c-text-danger"
>
<span>
Classes
</span>
</li>
@@ -9,7 +9,7 @@ exports[`Carousels.vue renders correctly 1`] = `
class="c-row"
>
<div
class="c-col-md-12 c-col-lg-9"
class="c-col-md-12 c-col-lg-7"
>
<div
class="c-card"
@@ -73,7 +73,7 @@ exports[`Carousels.vue renders correctly 1`] = `
class="c-carousel-item c-active"
>
<img
class="c-d-block c-w-100 c-h-100 c-img-fluid c-mx-auto"
class="c-d-block c-w-100 c-h-100 c-img-fluid"
src="https://lorempixel.com/1024/480/technics/2/"
/>
<div
@@ -92,7 +92,7 @@ exports[`Carousels.vue renders correctly 1`] = `
class="c-carousel-item"
>
<svg
class="c-d-block c-w-100 c-h-100 c-img-fluid c-mx-auto"
class="c-d-block c-w-100 c-h-100 c-img-fluid"
style="background-color: grey;"
/>
<div
@@ -111,19 +111,10 @@ exports[`Carousels.vue renders correctly 1`] = `
class="c-carousel-item"
>
<img
class="c-d-block c-w-100 c-h-100 c-img-fluid c-mx-auto"
class="c-d-block c-w-100 c-h-100 c-img-fluid"
src="https://lorempixel.com/1024/480/technics/8/"
/>
<div
class="c-carousel-caption"
>
<h3>
</h3>
<p>
</p>
</div>
<!---->
</div>
</div>
<a
@@ -58,7 +58,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
Cras justo odio
</clistgroupitem-stub>
@@ -70,7 +69,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
Dapibus ac facilisis in
</clistgroupitem-stub>
@@ -82,7 +80,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
Morbi leo risus
</clistgroupitem-stub>
@@ -94,7 +91,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
Porta ac consectetur ac
</clistgroupitem-stub>
@@ -106,7 +102,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
Vestibulum at eros
</clistgroupitem-stub>
@@ -152,7 +147,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
Cras justo odio
</clistgroupitem-stub>
@@ -165,7 +159,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
Dapibus ac facilisis in
</clistgroupitem-stub>
@@ -177,7 +170,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
Morbi leo risus
</clistgroupitem-stub>
@@ -189,7 +181,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
Porta ac consectetur ac
</clistgroupitem-stub>
@@ -201,7 +192,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
Vestibulum at eros
</clistgroupitem-stub>
@@ -252,7 +242,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
Cras justo odio
</clistgroupitem-stub>
@@ -264,7 +253,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
Dapibus ac facilisis in
</clistgroupitem-stub>
@@ -276,7 +264,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
Morbi leo risus
</clistgroupitem-stub>
@@ -289,7 +276,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
Porta ac consectetur ac
</clistgroupitem-stub>
@@ -301,7 +287,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
Vestibulum at eros
</clistgroupitem-stub>
@@ -350,7 +335,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
Awesome link
</clistgroupitem-stub>
@@ -364,7 +348,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
Link with active state
</clistgroupitem-stub>
@@ -377,7 +360,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
Action links are easy
</clistgroupitem-stub>
@@ -391,7 +373,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
Disabled link
</clistgroupitem-stub>
@@ -441,7 +422,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="button"
target="_self"
variant="primary"
>
Button item
</clistgroupitem-stub>
@@ -453,7 +433,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="button"
target="_self"
variant="primary"
>
I am a button
</clistgroupitem-stub>
@@ -466,7 +445,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="button"
target="_self"
variant="primary"
>
Disabled button
</clistgroupitem-stub>
@@ -478,7 +456,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="button"
target="_self"
variant="primary"
>
This is a button too
</clistgroupitem-stub>
@@ -527,7 +504,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
Cras justo odio
@@ -554,7 +530,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
Dapibus ac facilisis in
@@ -581,7 +556,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
Morbi leo risus
@@ -645,7 +619,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
This is a default list group item
</clistgroupitem-stub>
@@ -790,7 +763,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
This is a default list group item
</clistgroupitem-stub>
@@ -953,7 +925,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
Cras justo odio
</clistgroupitem-stub>
@@ -966,7 +937,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
Dapibus ac facilisis in
</clistgroupitem-stub>
@@ -979,7 +949,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
Vestibulum at eros
</clistgroupitem-stub>
@@ -1014,7 +983,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
Cras justo odio
</clistgroupitem-stub>
@@ -1027,7 +995,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
Dapibus ac facilisis in
</clistgroupitem-stub>
@@ -1040,7 +1007,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
Vestibulum at eros
</clistgroupitem-stub>
@@ -1105,7 +1071,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
<div
class="c-d-flex c-w-100 c-justify-content-between"
@@ -1144,7 +1109,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
<div
class="c-d-flex c-w-100 c-justify-content-between"
@@ -1188,7 +1152,6 @@ exports[`ListGroups.vue renders correctly 1`] = `
routertag="a"
tag="div"
target="_self"
variant="primary"
>
<div
class="c-d-flex c-w-100 c-justify-content-between"
@@ -77,7 +77,6 @@ exports[`Navbars.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Link
</cnavitem-stub>
@@ -91,7 +90,6 @@ exports[`Navbars.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Disabled
</cnavitem-stub>
@@ -130,10 +128,10 @@ exports[`Navbars.vue renders correctly 1`] = `
</cform-stub>
<cdropdown-stub
buttonhtml="Lang"
button-html="Lang"
nav="true"
placement="bottom-end"
variant="primary"
togglertext="Dropdown"
>
<cdropdownitem-stub
activeclass="c-active"
@@ -180,7 +178,7 @@ exports[`Navbars.vue renders correctly 1`] = `
buttonhtml=<em>User</em>
nav="true"
placement="bottom-end"
variant="primary"
togglertext="Dropdown"
>
<cdropdownitem-stub
activeclass="c-active"
@@ -369,7 +367,6 @@ exports[`Navbars.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Home
</cnavitem-stub>
@@ -382,16 +379,16 @@ exports[`Navbars.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Link
</cnavitem-stub>
<cdropdown-stub
buttonhtml="Lang"
button-html="Lang"
nav="true"
placement="bottom-start"
right=""
variant="primary"
togglertext="Dropdown"
>
<cdropdownitem-stub
activeclass="c-active"
@@ -435,10 +432,11 @@ exports[`Navbars.vue renders correctly 1`] = `
</cdropdown-stub>
<cdropdown-stub
buttonhtml="User"
button-html="User"
nav="true"
placement="bottom-start"
right=""
variant="primary"
togglertext="Dropdown"
>
<cdropdownitem-stub
activeclass="c-active"
@@ -51,7 +51,6 @@ exports[`Navs.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Active
</cnavitem-stub>
@@ -64,7 +63,6 @@ exports[`Navs.vue renders correctly 1`] = `
tag="span"
target="_self"
title="Link"
variant="primary"
/>
<cnavitem-stub
@@ -74,7 +72,6 @@ exports[`Navs.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Another Link
</cnavitem-stub>
@@ -87,7 +84,6 @@ exports[`Navs.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Disabled
</cnavitem-stub>
@@ -129,7 +125,6 @@ exports[`Navs.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
<i
class="cui-basket-loaded"
@@ -143,7 +138,6 @@ exports[`Navs.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Link
@@ -157,7 +151,6 @@ exports[`Navs.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Another Link
@@ -172,7 +165,6 @@ exports[`Navs.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Disabled
</cnavitem-stub>
@@ -216,7 +208,6 @@ exports[`Navs.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Active
@@ -230,7 +221,6 @@ exports[`Navs.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Link
@@ -244,7 +234,6 @@ exports[`Navs.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Another Link
@@ -259,7 +248,6 @@ exports[`Navs.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Disabled
</cnavitem-stub>
@@ -303,7 +291,6 @@ exports[`Navs.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Active
</cnavitem-stub>
@@ -315,7 +302,6 @@ exports[`Navs.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Link
</cnavitem-stub>
@@ -327,7 +313,6 @@ exports[`Navs.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Another Link
</cnavitem-stub>
@@ -340,7 +325,6 @@ exports[`Navs.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Disabled
</cnavitem-stub>
@@ -385,7 +369,6 @@ exports[`Navs.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Active
</cnavitem-stub>
@@ -397,7 +380,6 @@ exports[`Navs.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Link
</cnavitem-stub>
@@ -409,7 +391,6 @@ exports[`Navs.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Link with a long name
</cnavitem-stub>
@@ -422,7 +403,6 @@ exports[`Navs.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Disabled
</cnavitem-stub>
@@ -467,7 +447,6 @@ exports[`Navs.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Active
</cnavitem-stub>
@@ -479,7 +458,6 @@ exports[`Navs.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Link
</cnavitem-stub>
@@ -491,7 +469,6 @@ exports[`Navs.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Link with a long name
</cnavitem-stub>
@@ -504,7 +481,6 @@ exports[`Navs.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Disabled
</cnavitem-stub>
@@ -548,7 +524,6 @@ exports[`Navs.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Active
</cnavitem-stub>
@@ -560,18 +535,16 @@ exports[`Navs.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Link
</cnavitem-stub>
<cdropdown-stub
button-content="Dropdown"
buttonhtml="Dropdown"
id="nav7_ddown"
nav="true"
placement="bottom-end"
variant="primary"
togglertext="Dropdown"
>
<cdropdownitem-stub
activeclass="c-active"
@@ -654,7 +627,6 @@ exports[`Navs.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Active
</cnavitem-stub>
@@ -666,7 +638,6 @@ exports[`Navs.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Link
</cnavitem-stub>
@@ -678,7 +649,6 @@ exports[`Navs.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Another Link
</cnavitem-stub>
@@ -691,7 +661,6 @@ exports[`Navs.vue renders correctly 1`] = `
routertag="a"
tag="span"
target="_self"
variant="primary"
>
Disabled
</cnavitem-stub>
@@ -49,7 +49,6 @@ exports[`ProgressBars.vue renders correctly 1`] = `
precision="0"
showprogress="true"
value="73"
variant="primary"
/>
<cprogress-stub
@@ -57,7 +56,6 @@ exports[`ProgressBars.vue renders correctly 1`] = `
max="100"
precision="0"
showvalue="true"
variant="primary"
>
<cprogressbar-stub
max="100"
@@ -131,7 +129,6 @@ exports[`ProgressBars.vue renders correctly 1`] = `
max="50"
precision="0"
value="33.333333333"
variant="primary"
/>
<h6>
@@ -144,7 +141,6 @@ exports[`ProgressBars.vue renders correctly 1`] = `
precision="0"
showvalue="true"
value="33.333333333"
variant="primary"
/>
<h6>
@@ -157,7 +153,6 @@ exports[`ProgressBars.vue renders correctly 1`] = `
precision="0"
showprogress="true"
value="33.333333333"
variant="primary"
/>
<h6>
@@ -170,7 +165,6 @@ exports[`ProgressBars.vue renders correctly 1`] = `
precision="2"
showvalue="true"
value="33.333333333"
variant="primary"
/>
<h6>
@@ -183,7 +177,6 @@ exports[`ProgressBars.vue renders correctly 1`] = `
precision="2"
showprogress="true"
value="33.333333333"
variant="primary"
/>
</ccardbody-stub>
</ccard-stub>
@@ -222,7 +215,6 @@ exports[`ProgressBars.vue renders correctly 1`] = `
max="100"
precision="0"
value="75"
variant="primary"
/>
<h6>
@@ -234,7 +226,6 @@ exports[`ProgressBars.vue renders correctly 1`] = `
max="100"
precision="0"
value="75"
variant="primary"
/>
<cprogress-stub
@@ -242,7 +233,6 @@ exports[`ProgressBars.vue renders correctly 1`] = `
max="100"
precision="0"
value="75"
variant="primary"
/>
<cprogress-stub
@@ -250,7 +240,6 @@ exports[`ProgressBars.vue renders correctly 1`] = `
max="100"
precision="0"
value="75"
variant="primary"
/>
</ccardbody-stub>
</ccard-stub>
@@ -290,7 +279,6 @@ exports[`ProgressBars.vue renders correctly 1`] = `
precision="0"
showprogress="true"
value="75"
variant="primary"
/>
<h6>
@@ -304,7 +292,6 @@ exports[`ProgressBars.vue renders correctly 1`] = `
precision="0"
showprogress="true"
value="75"
variant="primary"
/>
<cprogress-stub
@@ -314,7 +301,6 @@ exports[`ProgressBars.vue renders correctly 1`] = `
precision="0"
showprogress="true"
value="75"
variant="primary"
/>
<cprogress-stub
@@ -322,7 +308,6 @@ exports[`ProgressBars.vue renders correctly 1`] = `
max="100"
precision="0"
value="75"
variant="primary"
/>
</ccardbody-stub>
</ccard-stub>
@@ -681,7 +666,6 @@ exports[`ProgressBars.vue renders correctly 1`] = `
class="c-mb-3"
max="100"
precision="0"
variant="primary"
>
<cprogressbar-stub
max="100"
@@ -710,7 +694,6 @@ exports[`ProgressBars.vue renders correctly 1`] = `
max="100"
precision="0"
showprogress="true"
variant="primary"
>
<cprogressbar-stub
max="100"
@@ -740,7 +723,6 @@ exports[`ProgressBars.vue renders correctly 1`] = `
precision="0"
showvalue="true"
striped="true"
variant="primary"
>
<cprogressbar-stub
max="100"
@@ -768,7 +750,6 @@ exports[`ProgressBars.vue renders correctly 1`] = `
class="c-mb-3"
max="100"
precision="0"
variant="primary"
>
<cprogressbar-stub
max="100"
@@ -2812,8 +2812,8 @@ exports[`Switches.vue renders correctly 1`] = `
fields="[object Object],[object Object],[object Object]"
hover="true"
items="[object Object],[object Object],[object Object]"
nosorting="true"
perpage="10"
itemsperpage="10"
no-sorting=""
striped="true"
/>
</ccardbody-stub>
@@ -10,8 +10,9 @@ exports[`Table.vue renders correctly 1`] = `
<ctable-stub
defaultsorter="[object Object]"
fields="username,registered,role,status"
itemsperpage="10"
pagination="true"
perpage="5"
per-page="5"
/>
</ccard-stub>
`;
@@ -52,9 +52,10 @@ exports[`Tables.vue renders correctly 1`] = `
hover="true"
indexcolumn="true"
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],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]"
itemsperpage="10"
optionsrow="true"
pagination="true"
perpage="6"
per-page="6"
/>
</ccardbody-stub>
</ccard-stub>