test: fix unit tests, update snapshots
This commit is contained in:
@@ -1,20 +1,16 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`Alerts.vue renders correctly 1`] = `
|
||||
<crow-stub>
|
||||
<crow-stub
|
||||
gutters="true"
|
||||
>
|
||||
<ccol-stub
|
||||
col="12"
|
||||
md="6"
|
||||
tag="div"
|
||||
>
|
||||
<ccard-stub
|
||||
subtitletag="h6"
|
||||
titletag="h4"
|
||||
>
|
||||
<ccardheader-stub
|
||||
subtitletag="h6"
|
||||
titletag="h4"
|
||||
>
|
||||
<ccard-stub>
|
||||
<ccardheader-stub>
|
||||
<i
|
||||
class="fa fa-align-justify"
|
||||
/>
|
||||
@@ -41,10 +37,7 @@ exports[`Alerts.vue renders correctly 1`] = `
|
||||
</div>
|
||||
</ccardheader-stub>
|
||||
|
||||
<ccardbody-stub
|
||||
subtitletag="h6"
|
||||
titletag="h4"
|
||||
>
|
||||
<ccardbody-stub>
|
||||
<div>
|
||||
<p />
|
||||
|
||||
@@ -113,14 +106,8 @@ exports[`Alerts.vue renders correctly 1`] = `
|
||||
md="6"
|
||||
tag="div"
|
||||
>
|
||||
<ccard-stub
|
||||
subtitletag="h6"
|
||||
titletag="h4"
|
||||
>
|
||||
<ccardheader-stub
|
||||
subtitletag="h6"
|
||||
titletag="h4"
|
||||
>
|
||||
<ccard-stub>
|
||||
<ccardheader-stub>
|
||||
<i
|
||||
class="fa fa-align-justify"
|
||||
/>
|
||||
@@ -135,10 +122,7 @@ exports[`Alerts.vue renders correctly 1`] = `
|
||||
</small>
|
||||
</ccardheader-stub>
|
||||
|
||||
<ccardbody-stub
|
||||
subtitletag="h6"
|
||||
titletag="h4"
|
||||
>
|
||||
<ccardbody-stub>
|
||||
<div>
|
||||
<calert-stub
|
||||
color="primary"
|
||||
@@ -285,14 +269,8 @@ exports[`Alerts.vue renders correctly 1`] = `
|
||||
md="6"
|
||||
tag="div"
|
||||
>
|
||||
<ccard-stub
|
||||
subtitletag="h6"
|
||||
titletag="h4"
|
||||
>
|
||||
<ccardheader-stub
|
||||
subtitletag="h6"
|
||||
titletag="h4"
|
||||
>
|
||||
<ccard-stub>
|
||||
<ccardheader-stub>
|
||||
<i
|
||||
class="fa fa-align-justify"
|
||||
/>
|
||||
@@ -302,10 +280,7 @@ exports[`Alerts.vue renders correctly 1`] = `
|
||||
</small>
|
||||
</ccardheader-stub>
|
||||
|
||||
<ccardbody-stub
|
||||
subtitletag="h6"
|
||||
titletag="h4"
|
||||
>
|
||||
<ccardbody-stub>
|
||||
<calert-stub
|
||||
color="success"
|
||||
show="true"
|
||||
@@ -343,14 +318,8 @@ exports[`Alerts.vue renders correctly 1`] = `
|
||||
md="6"
|
||||
tag="div"
|
||||
>
|
||||
<ccard-stub
|
||||
subtitletag="h6"
|
||||
titletag="h4"
|
||||
>
|
||||
<ccardheader-stub
|
||||
subtitletag="h6"
|
||||
titletag="h4"
|
||||
>
|
||||
<ccard-stub>
|
||||
<ccardheader-stub>
|
||||
<i
|
||||
class="fa fa-align-justify"
|
||||
/>
|
||||
@@ -361,10 +330,7 @@ exports[`Alerts.vue renders correctly 1`] = `
|
||||
</small>
|
||||
</ccardheader-stub>
|
||||
|
||||
<ccardbody-stub
|
||||
subtitletag="h6"
|
||||
titletag="h4"
|
||||
>
|
||||
<ccardbody-stub>
|
||||
<calert-stub
|
||||
closebutton="true"
|
||||
color="secondary"
|
||||
@@ -409,14 +375,8 @@ exports[`Alerts.vue renders correctly 1`] = `
|
||||
</ccardbody-stub>
|
||||
</ccard-stub>
|
||||
|
||||
<ccard-stub
|
||||
subtitletag="h6"
|
||||
titletag="h4"
|
||||
>
|
||||
<ccardheader-stub
|
||||
subtitletag="h6"
|
||||
titletag="h4"
|
||||
>
|
||||
<ccard-stub>
|
||||
<ccardheader-stub>
|
||||
<i
|
||||
class="fa fa-align-justify"
|
||||
/>
|
||||
@@ -427,10 +387,7 @@ exports[`Alerts.vue renders correctly 1`] = `
|
||||
</small>
|
||||
</ccardheader-stub>
|
||||
|
||||
<ccardbody-stub
|
||||
subtitletag="h6"
|
||||
titletag="h4"
|
||||
>
|
||||
<ccardbody-stub>
|
||||
<div>
|
||||
<calert-stub
|
||||
closebutton="true"
|
||||
|
||||
@@ -43,13 +43,10 @@ exports[`Badges.vue renders correctly 1`] = `
|
||||
<div
|
||||
class="card-body"
|
||||
>
|
||||
<!---->
|
||||
<!---->
|
||||
<h2>
|
||||
Example heading
|
||||
<span
|
||||
class="badge"
|
||||
color="primary"
|
||||
class="badge badge-primary"
|
||||
>
|
||||
New
|
||||
</span>
|
||||
@@ -58,8 +55,7 @@ exports[`Badges.vue renders correctly 1`] = `
|
||||
<h3>
|
||||
Example heading
|
||||
<span
|
||||
class="badge"
|
||||
color="primary"
|
||||
class="badge badge-primary"
|
||||
>
|
||||
New
|
||||
</span>
|
||||
@@ -68,8 +64,7 @@ exports[`Badges.vue renders correctly 1`] = `
|
||||
<h4>
|
||||
Example heading
|
||||
<span
|
||||
class="badge"
|
||||
color="primary"
|
||||
class="badge badge-primary"
|
||||
>
|
||||
New
|
||||
</span>
|
||||
@@ -78,8 +73,7 @@ exports[`Badges.vue renders correctly 1`] = `
|
||||
<h5>
|
||||
Example heading
|
||||
<span
|
||||
class="badge"
|
||||
color="primary"
|
||||
class="badge badge-primary"
|
||||
>
|
||||
New
|
||||
</span>
|
||||
@@ -88,8 +82,7 @@ exports[`Badges.vue renders correctly 1`] = `
|
||||
<h6>
|
||||
Example heading
|
||||
<span
|
||||
class="badge"
|
||||
color="primary"
|
||||
class="badge badge-primary"
|
||||
>
|
||||
New
|
||||
</span>
|
||||
@@ -100,16 +93,14 @@ exports[`Badges.vue renders correctly 1`] = `
|
||||
class="card-footer"
|
||||
>
|
||||
<button
|
||||
class="btn"
|
||||
color="primary"
|
||||
class="btn btn-primary"
|
||||
type="button"
|
||||
>
|
||||
|
||||
Notifications
|
||||
|
||||
<span
|
||||
class="badge ml-2 position-static"
|
||||
color="light"
|
||||
class="badge ml-2 position-static badge-light"
|
||||
>
|
||||
4
|
||||
</span>
|
||||
@@ -142,60 +133,50 @@ exports[`Badges.vue renders correctly 1`] = `
|
||||
<div
|
||||
class="card-body"
|
||||
>
|
||||
<!---->
|
||||
<!---->
|
||||
<span
|
||||
class="badge"
|
||||
color="primary"
|
||||
class="badge badge-primary"
|
||||
>
|
||||
Primary
|
||||
</span>
|
||||
|
||||
<span
|
||||
class="badge"
|
||||
color="secondary"
|
||||
class="badge badge-secondary"
|
||||
>
|
||||
Secondary
|
||||
</span>
|
||||
|
||||
<span
|
||||
class="badge"
|
||||
color="success"
|
||||
class="badge badge-success"
|
||||
>
|
||||
Success
|
||||
</span>
|
||||
|
||||
<span
|
||||
class="badge"
|
||||
color="danger"
|
||||
class="badge badge-danger"
|
||||
>
|
||||
Danger
|
||||
</span>
|
||||
|
||||
<span
|
||||
class="badge"
|
||||
color="warning"
|
||||
class="badge badge-warning"
|
||||
>
|
||||
Warning
|
||||
</span>
|
||||
|
||||
<span
|
||||
class="badge"
|
||||
color="info"
|
||||
class="badge badge-info"
|
||||
>
|
||||
Info
|
||||
</span>
|
||||
|
||||
<span
|
||||
class="badge"
|
||||
color="light"
|
||||
class="badge badge-light"
|
||||
>
|
||||
Light
|
||||
</span>
|
||||
|
||||
<span
|
||||
class="badge"
|
||||
color="dark"
|
||||
class="badge badge-dark"
|
||||
>
|
||||
Dark
|
||||
</span>
|
||||
@@ -223,60 +204,50 @@ exports[`Badges.vue renders correctly 1`] = `
|
||||
<div
|
||||
class="card-body"
|
||||
>
|
||||
<!---->
|
||||
<!---->
|
||||
<span
|
||||
class="badge badge-pill"
|
||||
color="primary"
|
||||
class="badge badge-primary badge-pill"
|
||||
>
|
||||
Primary
|
||||
</span>
|
||||
|
||||
<span
|
||||
class="badge badge-pill"
|
||||
color="secondary"
|
||||
class="badge badge-secondary badge-pill"
|
||||
>
|
||||
Secondary
|
||||
</span>
|
||||
|
||||
<span
|
||||
class="badge badge-pill"
|
||||
color="success"
|
||||
class="badge badge-success badge-pill"
|
||||
>
|
||||
Success
|
||||
</span>
|
||||
|
||||
<span
|
||||
class="badge badge-pill"
|
||||
color="danger"
|
||||
class="badge badge-danger badge-pill"
|
||||
>
|
||||
Danger
|
||||
</span>
|
||||
|
||||
<span
|
||||
class="badge badge-pill"
|
||||
color="warning"
|
||||
class="badge badge-warning badge-pill"
|
||||
>
|
||||
Warning
|
||||
</span>
|
||||
|
||||
<span
|
||||
class="badge badge-pill"
|
||||
color="info"
|
||||
class="badge badge-info badge-pill"
|
||||
>
|
||||
Info
|
||||
</span>
|
||||
|
||||
<span
|
||||
class="badge badge-pill"
|
||||
color="light"
|
||||
class="badge badge-light badge-pill"
|
||||
>
|
||||
Light
|
||||
</span>
|
||||
|
||||
<span
|
||||
class="badge badge-pill"
|
||||
color="dark"
|
||||
class="badge badge-dark badge-pill"
|
||||
>
|
||||
Dark
|
||||
</span>
|
||||
@@ -304,11 +275,8 @@ exports[`Badges.vue renders correctly 1`] = `
|
||||
<div
|
||||
class="card-body"
|
||||
>
|
||||
<!---->
|
||||
<!---->
|
||||
<a
|
||||
class="badge"
|
||||
color="primary"
|
||||
class="badge badge-primary"
|
||||
href="#"
|
||||
target="_self"
|
||||
>
|
||||
@@ -316,8 +284,7 @@ exports[`Badges.vue renders correctly 1`] = `
|
||||
</a>
|
||||
|
||||
<a
|
||||
class="badge"
|
||||
color="secondary"
|
||||
class="badge badge-secondary"
|
||||
href="#"
|
||||
target="_self"
|
||||
>
|
||||
@@ -325,8 +292,7 @@ exports[`Badges.vue renders correctly 1`] = `
|
||||
</a>
|
||||
|
||||
<a
|
||||
class="badge"
|
||||
color="success"
|
||||
class="badge badge-success"
|
||||
href="#"
|
||||
target="_self"
|
||||
>
|
||||
@@ -334,8 +300,7 @@ exports[`Badges.vue renders correctly 1`] = `
|
||||
</a>
|
||||
|
||||
<a
|
||||
class="badge"
|
||||
color="danger"
|
||||
class="badge badge-danger"
|
||||
href="#"
|
||||
target="_self"
|
||||
>
|
||||
@@ -343,8 +308,7 @@ exports[`Badges.vue renders correctly 1`] = `
|
||||
</a>
|
||||
|
||||
<a
|
||||
class="badge"
|
||||
color="warning"
|
||||
class="badge badge-warning"
|
||||
href="#"
|
||||
target="_self"
|
||||
>
|
||||
@@ -352,8 +316,7 @@ exports[`Badges.vue renders correctly 1`] = `
|
||||
</a>
|
||||
|
||||
<a
|
||||
class="badge"
|
||||
color="info"
|
||||
class="badge badge-info"
|
||||
href="#"
|
||||
target="_self"
|
||||
>
|
||||
@@ -361,8 +324,7 @@ exports[`Badges.vue renders correctly 1`] = `
|
||||
</a>
|
||||
|
||||
<a
|
||||
class="badge"
|
||||
color="light"
|
||||
class="badge badge-light"
|
||||
href="#"
|
||||
target="_self"
|
||||
>
|
||||
@@ -370,8 +332,7 @@ exports[`Badges.vue renders correctly 1`] = `
|
||||
</a>
|
||||
|
||||
<a
|
||||
class="badge"
|
||||
color="dark"
|
||||
class="badge badge-dark"
|
||||
href="#"
|
||||
target="_self"
|
||||
>
|
||||
|
||||
@@ -5,19 +5,15 @@ exports[`Modals.vue renders correctly 1`] = `
|
||||
class="wrapper"
|
||||
>
|
||||
<div>
|
||||
<crow-stub>
|
||||
<crow-stub
|
||||
gutters="true"
|
||||
>
|
||||
<ccol-stub
|
||||
col="12"
|
||||
tag="div"
|
||||
>
|
||||
<ccard-stub
|
||||
subtitletag="h6"
|
||||
titletag="h4"
|
||||
>
|
||||
<ccardheader-stub
|
||||
subtitletag="h6"
|
||||
titletag="h4"
|
||||
>
|
||||
<ccard-stub>
|
||||
<ccardheader-stub>
|
||||
<i
|
||||
class="fa fa-align-justify"
|
||||
/>
|
||||
@@ -41,10 +37,7 @@ exports[`Modals.vue renders correctly 1`] = `
|
||||
</div>
|
||||
</ccardheader-stub>
|
||||
|
||||
<ccardbody-stub
|
||||
subtitletag="h6"
|
||||
titletag="h4"
|
||||
>
|
||||
<ccardbody-stub>
|
||||
<cbutton-stub
|
||||
activeclass="active"
|
||||
class="mr-1"
|
||||
@@ -188,6 +181,9 @@ exports[`Modals.vue renders correctly 1`] = `
|
||||
</div>
|
||||
|
||||
<cmodal-stub
|
||||
backdrop="true"
|
||||
closeonbackdrop="true"
|
||||
fade="true"
|
||||
title="Modal title"
|
||||
>
|
||||
|
||||
@@ -201,6 +197,9 @@ exports[`Modals.vue renders correctly 1`] = `
|
||||
</cmodal-stub>
|
||||
|
||||
<cmodal-stub
|
||||
backdrop="true"
|
||||
closeonbackdrop="true"
|
||||
fade="true"
|
||||
size="lg"
|
||||
title="Modal title"
|
||||
>
|
||||
@@ -215,6 +214,9 @@ exports[`Modals.vue renders correctly 1`] = `
|
||||
</cmodal-stub>
|
||||
|
||||
<cmodal-stub
|
||||
backdrop="true"
|
||||
closeonbackdrop="true"
|
||||
fade="true"
|
||||
size="sm"
|
||||
title="Modal title"
|
||||
>
|
||||
@@ -229,6 +231,9 @@ exports[`Modals.vue renders correctly 1`] = `
|
||||
</cmodal-stub>
|
||||
|
||||
<cmodal-stub
|
||||
backdrop="true"
|
||||
closeonbackdrop="true"
|
||||
fade="true"
|
||||
title="Modal title"
|
||||
>
|
||||
|
||||
@@ -242,7 +247,10 @@ exports[`Modals.vue renders correctly 1`] = `
|
||||
</cmodal-stub>
|
||||
|
||||
<cmodal-stub
|
||||
backdrop="true"
|
||||
closeonbackdrop="true"
|
||||
color="success"
|
||||
fade="true"
|
||||
title="Modal title"
|
||||
>
|
||||
|
||||
@@ -256,7 +264,10 @@ exports[`Modals.vue renders correctly 1`] = `
|
||||
</cmodal-stub>
|
||||
|
||||
<cmodal-stub
|
||||
backdrop="true"
|
||||
closeonbackdrop="true"
|
||||
color="warning"
|
||||
fade="true"
|
||||
title="Modal title"
|
||||
>
|
||||
|
||||
@@ -270,7 +281,10 @@ exports[`Modals.vue renders correctly 1`] = `
|
||||
</cmodal-stub>
|
||||
|
||||
<cmodal-stub
|
||||
backdrop="true"
|
||||
closeonbackdrop="true"
|
||||
color="danger"
|
||||
fade="true"
|
||||
title="Modal title"
|
||||
>
|
||||
|
||||
@@ -284,7 +298,10 @@ exports[`Modals.vue renders correctly 1`] = `
|
||||
</cmodal-stub>
|
||||
|
||||
<cmodal-stub
|
||||
backdrop="true"
|
||||
closeonbackdrop="true"
|
||||
color="info"
|
||||
fade="true"
|
||||
title="Modal title"
|
||||
>
|
||||
|
||||
@@ -298,9 +315,12 @@ exports[`Modals.vue renders correctly 1`] = `
|
||||
</cmodal-stub>
|
||||
|
||||
<cmodal-stub
|
||||
backdrop="true"
|
||||
centered="true"
|
||||
closeonbackdrop="true"
|
||||
color="dark"
|
||||
nocloseonbackdrop="true"
|
||||
fade="true"
|
||||
no-close-on-backdrop="true"
|
||||
size="lg"
|
||||
title="Modal title 2"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user