refactor: fix small bugs, update unit tests
This commit is contained in:
@@ -0,0 +1,838 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`Widgets.vue renders correctly 1`] = `
|
||||
<div>
|
||||
<crow-stub
|
||||
gutters="true"
|
||||
>
|
||||
<ccol-stub
|
||||
lg="3"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgetprogress-stub
|
||||
footer="Lorem ipsum dolor sit amet enim."
|
||||
header="89.9%"
|
||||
text="Lorem ipsum..."
|
||||
value="25"
|
||||
>
|
||||
<cprogress-stub
|
||||
class="progress-xs my-3 mb-0"
|
||||
color="success"
|
||||
max="100"
|
||||
precision="0"
|
||||
value="25"
|
||||
/>
|
||||
</cwidgetprogress-stub>
|
||||
</ccol-stub>
|
||||
|
||||
<ccol-stub
|
||||
lg="3"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgetprogress-stub
|
||||
color="info"
|
||||
footer="Lorem ipsum dolor sit amet enim."
|
||||
header="12.124"
|
||||
text="Lorem ipsum..."
|
||||
value="25"
|
||||
/>
|
||||
</ccol-stub>
|
||||
|
||||
<ccol-stub
|
||||
lg="3"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgetprogress-stub
|
||||
color="warning"
|
||||
footer="Lorem ipsum dolor sit amet enim."
|
||||
header="$98.111,00"
|
||||
text="Lorem ipsum..."
|
||||
value="25"
|
||||
/>
|
||||
</ccol-stub>
|
||||
|
||||
<ccol-stub
|
||||
lg="3"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgetprogress-stub
|
||||
color="danger"
|
||||
footer="Lorem ipsum dolor sit amet enim."
|
||||
header="2 TB"
|
||||
text="Lorem ipsum..."
|
||||
value="25"
|
||||
/>
|
||||
</ccol-stub>
|
||||
</crow-stub>
|
||||
|
||||
<crow-stub
|
||||
gutters="true"
|
||||
>
|
||||
<ccol-stub
|
||||
lg="3"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgetprogress-stub
|
||||
color="success"
|
||||
footer="Lorem ipsum dolor sit amet enim."
|
||||
header="89.9%"
|
||||
inverse="true"
|
||||
text="Lorem ipsum..."
|
||||
value="25"
|
||||
/>
|
||||
</ccol-stub>
|
||||
|
||||
<ccol-stub
|
||||
lg="3"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgetprogress-stub
|
||||
color="info"
|
||||
footer="Lorem ipsum dolor sit amet enim."
|
||||
header="12.124"
|
||||
inverse="true"
|
||||
text="Lorem ipsum..."
|
||||
value="25"
|
||||
/>
|
||||
</ccol-stub>
|
||||
|
||||
<ccol-stub
|
||||
lg="3"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgetprogress-stub
|
||||
color="warning"
|
||||
footer="Lorem ipsum dolor sit amet enim."
|
||||
header="$98.111,00"
|
||||
inverse="true"
|
||||
text="Lorem ipsum..."
|
||||
value="25"
|
||||
/>
|
||||
</ccol-stub>
|
||||
|
||||
<ccol-stub
|
||||
lg="3"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgetprogress-stub
|
||||
color="danger"
|
||||
footer="Lorem ipsum dolor sit amet enim."
|
||||
header="2 TB"
|
||||
inverse="true"
|
||||
text="Lorem ipsum..."
|
||||
value="25"
|
||||
/>
|
||||
</ccol-stub>
|
||||
</crow-stub>
|
||||
|
||||
<crow-stub
|
||||
gutters="true"
|
||||
>
|
||||
<ccol-stub
|
||||
col="12"
|
||||
lg="3"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgeticon-stub
|
||||
color="primary"
|
||||
header="$1.999,50"
|
||||
iconpadding="true"
|
||||
text="Income"
|
||||
>
|
||||
<cicon-stub
|
||||
name="settings"
|
||||
width="24"
|
||||
/>
|
||||
</cwidgeticon-stub>
|
||||
</ccol-stub>
|
||||
|
||||
<ccol-stub
|
||||
col="12"
|
||||
lg="3"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgeticon-stub
|
||||
color="info"
|
||||
header="$1.999,50"
|
||||
iconpadding="true"
|
||||
text="Income"
|
||||
>
|
||||
<cicon-stub
|
||||
name="laptop"
|
||||
width="24"
|
||||
/>
|
||||
</cwidgeticon-stub>
|
||||
</ccol-stub>
|
||||
|
||||
<ccol-stub
|
||||
col="12"
|
||||
lg="3"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgeticon-stub
|
||||
color="warning"
|
||||
header="$1.999,50"
|
||||
iconpadding="true"
|
||||
text="Income"
|
||||
>
|
||||
<cicon-stub
|
||||
name="moon"
|
||||
width="24"
|
||||
/>
|
||||
</cwidgeticon-stub>
|
||||
</ccol-stub>
|
||||
|
||||
<ccol-stub
|
||||
col="12"
|
||||
lg="3"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgeticon-stub
|
||||
color="danger"
|
||||
header="$1.999,50"
|
||||
iconpadding="true"
|
||||
text="Income"
|
||||
>
|
||||
<cicon-stub
|
||||
name="bell"
|
||||
width="24"
|
||||
/>
|
||||
</cwidgeticon-stub>
|
||||
</ccol-stub>
|
||||
</crow-stub>
|
||||
|
||||
<crow-stub
|
||||
gutters="true"
|
||||
>
|
||||
<ccol-stub
|
||||
col="12"
|
||||
lg="3"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgeticon-stub
|
||||
color="primary"
|
||||
header="$1.999,50"
|
||||
text="Income"
|
||||
>
|
||||
<cicon-stub
|
||||
name="settings"
|
||||
width="24"
|
||||
/>
|
||||
</cwidgeticon-stub>
|
||||
</ccol-stub>
|
||||
|
||||
<ccol-stub
|
||||
col="12"
|
||||
lg="3"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgeticon-stub
|
||||
color="info"
|
||||
header="$1.999,50"
|
||||
text="Income"
|
||||
>
|
||||
<cicon-stub
|
||||
name="laptop"
|
||||
width="24"
|
||||
/>
|
||||
</cwidgeticon-stub>
|
||||
</ccol-stub>
|
||||
|
||||
<ccol-stub
|
||||
col="12"
|
||||
lg="3"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgeticon-stub
|
||||
color="warning"
|
||||
header="$1.999,50"
|
||||
text="Income"
|
||||
>
|
||||
<cicon-stub
|
||||
name="moon"
|
||||
width="24"
|
||||
/>
|
||||
</cwidgeticon-stub>
|
||||
</ccol-stub>
|
||||
|
||||
<ccol-stub
|
||||
col="12"
|
||||
lg="3"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgeticon-stub
|
||||
color="danger"
|
||||
header="$1.999,50"
|
||||
text="Income"
|
||||
>
|
||||
<cicon-stub
|
||||
name="bell"
|
||||
width="24"
|
||||
/>
|
||||
</cwidgeticon-stub>
|
||||
</ccol-stub>
|
||||
</crow-stub>
|
||||
|
||||
<crow-stub
|
||||
gutters="true"
|
||||
>
|
||||
<ccol-stub
|
||||
col="12"
|
||||
lg="4"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgeticon-stub
|
||||
color="primary"
|
||||
header="$1.999,50"
|
||||
text="Income"
|
||||
>
|
||||
<cicon-stub
|
||||
class="mx-5 "
|
||||
name="settings"
|
||||
width="24"
|
||||
/>
|
||||
</cwidgeticon-stub>
|
||||
</ccol-stub>
|
||||
|
||||
<ccol-stub
|
||||
col="12"
|
||||
lg="4"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgeticon-stub
|
||||
color="info"
|
||||
header="$1.999,50"
|
||||
text="Income"
|
||||
>
|
||||
<cicon-stub
|
||||
class="mx-5 "
|
||||
name="laptop"
|
||||
width="24"
|
||||
/>
|
||||
</cwidgeticon-stub>
|
||||
</ccol-stub>
|
||||
|
||||
<ccol-stub
|
||||
col="12"
|
||||
lg="4"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgeticon-stub
|
||||
color="warning"
|
||||
header="$1.999,50"
|
||||
text="Income"
|
||||
>
|
||||
<cicon-stub
|
||||
class="mx-5 "
|
||||
name="moon"
|
||||
width="24"
|
||||
/>
|
||||
</cwidgeticon-stub>
|
||||
</ccol-stub>
|
||||
</crow-stub>
|
||||
|
||||
<widgetsbrand-stub
|
||||
nocharts="true"
|
||||
/>
|
||||
|
||||
<widgetsbrand-stub />
|
||||
|
||||
<ccardgroup-stub
|
||||
class="mb-4"
|
||||
>
|
||||
<cwidgetprogressicon-stub
|
||||
color="info"
|
||||
header="87.500"
|
||||
text="Visitors"
|
||||
value="25"
|
||||
>
|
||||
<cicon-stub
|
||||
height="36"
|
||||
name="people"
|
||||
/>
|
||||
</cwidgetprogressicon-stub>
|
||||
|
||||
<cwidgetprogressicon-stub
|
||||
color="success"
|
||||
header="385"
|
||||
text="New Clients"
|
||||
value="25"
|
||||
>
|
||||
<cicon-stub
|
||||
height="36"
|
||||
name="userFollow"
|
||||
/>
|
||||
</cwidgetprogressicon-stub>
|
||||
|
||||
<cwidgetprogressicon-stub
|
||||
color="warning"
|
||||
header="1238"
|
||||
text="Products sold"
|
||||
value="25"
|
||||
>
|
||||
<cicon-stub
|
||||
height="36"
|
||||
name="basket"
|
||||
/>
|
||||
</cwidgetprogressicon-stub>
|
||||
|
||||
<cwidgetprogressicon-stub
|
||||
header="28%"
|
||||
text="Returning Visitors"
|
||||
value="25"
|
||||
>
|
||||
<cicon-stub
|
||||
height="36"
|
||||
name="chartPie"
|
||||
/>
|
||||
</cwidgetprogressicon-stub>
|
||||
|
||||
<cwidgetprogressicon-stub
|
||||
color="danger"
|
||||
header="5:34:11"
|
||||
text="Avg. Time"
|
||||
value="25"
|
||||
>
|
||||
<cicon-stub
|
||||
height="36"
|
||||
name="speedometer"
|
||||
/>
|
||||
</cwidgetprogressicon-stub>
|
||||
</ccardgroup-stub>
|
||||
|
||||
<ccardgroup-stub
|
||||
class="mb-4"
|
||||
>
|
||||
<cwidgetprogressicon-stub
|
||||
color="info"
|
||||
header="87.500"
|
||||
inverse="true"
|
||||
text="Visitors"
|
||||
value="25"
|
||||
>
|
||||
<cicon-stub
|
||||
height="36"
|
||||
name="people"
|
||||
/>
|
||||
</cwidgetprogressicon-stub>
|
||||
|
||||
<cwidgetprogressicon-stub
|
||||
color="success"
|
||||
header="385"
|
||||
inverse="true"
|
||||
text="New Clients"
|
||||
value="25"
|
||||
>
|
||||
<cicon-stub
|
||||
height="36"
|
||||
name="userFollow"
|
||||
/>
|
||||
</cwidgetprogressicon-stub>
|
||||
|
||||
<cwidgetprogressicon-stub
|
||||
color="warning"
|
||||
header="1238"
|
||||
inverse="true"
|
||||
text="Products sold"
|
||||
value="25"
|
||||
>
|
||||
<cicon-stub
|
||||
height="36"
|
||||
name="basket"
|
||||
/>
|
||||
</cwidgetprogressicon-stub>
|
||||
|
||||
<cwidgetprogressicon-stub
|
||||
color="primary"
|
||||
header="28%"
|
||||
inverse="true"
|
||||
text="Returning Visitors"
|
||||
value="25"
|
||||
>
|
||||
<cicon-stub
|
||||
height="36"
|
||||
name="chartPie"
|
||||
/>
|
||||
</cwidgetprogressicon-stub>
|
||||
|
||||
<cwidgetprogressicon-stub
|
||||
color="danger"
|
||||
header="5:34:11"
|
||||
inverse="true"
|
||||
text="Avg. Time"
|
||||
value="25"
|
||||
>
|
||||
<cicon-stub
|
||||
height="36"
|
||||
name="speedometer"
|
||||
/>
|
||||
</cwidgetprogressicon-stub>
|
||||
</ccardgroup-stub>
|
||||
|
||||
<crow-stub
|
||||
gutters="true"
|
||||
>
|
||||
<ccol-stub
|
||||
md="2"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgetprogressicon-stub
|
||||
color="info"
|
||||
header="87.500"
|
||||
text="Visitors"
|
||||
value="25"
|
||||
>
|
||||
<cicon-stub
|
||||
height="36"
|
||||
name="people"
|
||||
/>
|
||||
</cwidgetprogressicon-stub>
|
||||
</ccol-stub>
|
||||
|
||||
<ccol-stub
|
||||
md="2"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgetprogressicon-stub
|
||||
color="success"
|
||||
header="385"
|
||||
text="New Clients"
|
||||
value="25"
|
||||
>
|
||||
<cicon-stub
|
||||
height="36"
|
||||
name="userFollow"
|
||||
/>
|
||||
</cwidgetprogressicon-stub>
|
||||
</ccol-stub>
|
||||
|
||||
<ccol-stub
|
||||
md="2"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgetprogressicon-stub
|
||||
color="warning"
|
||||
header="1238"
|
||||
text="Products sold"
|
||||
value="25"
|
||||
>
|
||||
<cicon-stub
|
||||
height="36"
|
||||
name="basket"
|
||||
/>
|
||||
</cwidgetprogressicon-stub>
|
||||
</ccol-stub>
|
||||
|
||||
<ccol-stub
|
||||
md="2"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgetprogressicon-stub
|
||||
color="primary"
|
||||
header="28%"
|
||||
text="Returning Visitors"
|
||||
value="25"
|
||||
>
|
||||
<cicon-stub
|
||||
height="36"
|
||||
name="chartPie"
|
||||
/>
|
||||
</cwidgetprogressicon-stub>
|
||||
</ccol-stub>
|
||||
|
||||
<ccol-stub
|
||||
md="2"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgetprogressicon-stub
|
||||
color="danger"
|
||||
header="5:34:11"
|
||||
text="Avg. Time"
|
||||
value="25"
|
||||
>
|
||||
<cicon-stub
|
||||
height="36"
|
||||
name="speedometer"
|
||||
/>
|
||||
</cwidgetprogressicon-stub>
|
||||
</ccol-stub>
|
||||
|
||||
<ccol-stub
|
||||
md="2"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgetprogressicon-stub
|
||||
color="info"
|
||||
header="972"
|
||||
text="comments"
|
||||
value="25"
|
||||
>
|
||||
<cicon-stub
|
||||
height="36"
|
||||
name="speech"
|
||||
/>
|
||||
</cwidgetprogressicon-stub>
|
||||
</ccol-stub>
|
||||
</crow-stub>
|
||||
|
||||
<crow-stub
|
||||
gutters="true"
|
||||
>
|
||||
<ccol-stub
|
||||
md="2"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgetprogressicon-stub
|
||||
color="info"
|
||||
header="87.500"
|
||||
inverse="true"
|
||||
text="Visitors"
|
||||
value="25"
|
||||
>
|
||||
<cicon-stub
|
||||
height="36"
|
||||
name="people"
|
||||
/>
|
||||
</cwidgetprogressicon-stub>
|
||||
</ccol-stub>
|
||||
|
||||
<ccol-stub
|
||||
md="2"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgetprogressicon-stub
|
||||
color="success"
|
||||
header="385"
|
||||
inverse="true"
|
||||
text="New Clients"
|
||||
value="25"
|
||||
>
|
||||
<cicon-stub
|
||||
height="36"
|
||||
name="userFollow"
|
||||
/>
|
||||
</cwidgetprogressicon-stub>
|
||||
</ccol-stub>
|
||||
|
||||
<ccol-stub
|
||||
md="2"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgetprogressicon-stub
|
||||
color="warning"
|
||||
header="1238"
|
||||
inverse="true"
|
||||
text="Products sold"
|
||||
value="25"
|
||||
>
|
||||
<cicon-stub
|
||||
height="36"
|
||||
name="basket"
|
||||
/>
|
||||
</cwidgetprogressicon-stub>
|
||||
</ccol-stub>
|
||||
|
||||
<ccol-stub
|
||||
md="2"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgetprogressicon-stub
|
||||
color="primary"
|
||||
header="28%"
|
||||
inverse="true"
|
||||
text="Returning Visitors"
|
||||
value="25"
|
||||
>
|
||||
<cicon-stub
|
||||
height="36"
|
||||
name="chartPie"
|
||||
/>
|
||||
</cwidgetprogressicon-stub>
|
||||
</ccol-stub>
|
||||
|
||||
<ccol-stub
|
||||
md="2"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgetprogressicon-stub
|
||||
color="danger"
|
||||
header="5:34:11"
|
||||
inverse="true"
|
||||
text="Avg. Time"
|
||||
value="25"
|
||||
>
|
||||
<cicon-stub
|
||||
height="36"
|
||||
name="speedometer"
|
||||
/>
|
||||
</cwidgetprogressicon-stub>
|
||||
</ccol-stub>
|
||||
|
||||
<ccol-stub
|
||||
md="2"
|
||||
sm="6"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgetprogressicon-stub
|
||||
color="info"
|
||||
header="972"
|
||||
inverse="true"
|
||||
text="comments"
|
||||
value="25"
|
||||
>
|
||||
<cicon-stub
|
||||
height="36"
|
||||
name="speech"
|
||||
/>
|
||||
</cwidgetprogressicon-stub>
|
||||
</ccol-stub>
|
||||
</crow-stub>
|
||||
|
||||
<widgetsdropdown-stub />
|
||||
|
||||
<crow-stub
|
||||
gutters="true"
|
||||
>
|
||||
<ccol-stub
|
||||
lg="2"
|
||||
sm="4"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgetsimple-stub
|
||||
header="title"
|
||||
text="1,123"
|
||||
>
|
||||
<cchartlinesimple-stub
|
||||
backgroundcolor="transparent"
|
||||
bordercolor="danger"
|
||||
datapoints="10,22,34,46,58,70,46,23,45,78,34,12"
|
||||
label="Sales"
|
||||
style="height: 40px;"
|
||||
/>
|
||||
</cwidgetsimple-stub>
|
||||
</ccol-stub>
|
||||
|
||||
<ccol-stub
|
||||
lg="2"
|
||||
sm="4"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgetsimple-stub
|
||||
header="title"
|
||||
text="1,123"
|
||||
>
|
||||
<cchartlinesimple-stub
|
||||
backgroundcolor="transparent"
|
||||
bordercolor="primary"
|
||||
datapoints="10,22,34,46,58,70,46,23,45,78,34,12"
|
||||
label="Sales"
|
||||
style="height: 40px;"
|
||||
/>
|
||||
</cwidgetsimple-stub>
|
||||
</ccol-stub>
|
||||
|
||||
<ccol-stub
|
||||
lg="2"
|
||||
sm="4"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgetsimple-stub
|
||||
header="title"
|
||||
text="1,123"
|
||||
>
|
||||
<cchartlinesimple-stub
|
||||
backgroundcolor="transparent"
|
||||
bordercolor="success"
|
||||
datapoints="10,22,34,46,58,70,46,23,45,78,34,12"
|
||||
label="Sales"
|
||||
style="height: 40px;"
|
||||
/>
|
||||
</cwidgetsimple-stub>
|
||||
</ccol-stub>
|
||||
|
||||
<ccol-stub
|
||||
lg="2"
|
||||
sm="4"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgetsimple-stub
|
||||
header="title"
|
||||
text="1,123"
|
||||
>
|
||||
<cchartbarsimple-stub
|
||||
backgroundcolor="danger"
|
||||
datapoints="10,22,34,46,58,70,46,23,45,78,34,12"
|
||||
label="Sales"
|
||||
style="height: 40px;"
|
||||
/>
|
||||
</cwidgetsimple-stub>
|
||||
</ccol-stub>
|
||||
|
||||
<ccol-stub
|
||||
lg="2"
|
||||
sm="4"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgetsimple-stub
|
||||
header="title"
|
||||
text="1,123"
|
||||
>
|
||||
<cchartbarsimple-stub
|
||||
backgroundcolor="primary"
|
||||
datapoints="10,22,34,46,58,70,46,23,45,78,34,12"
|
||||
label="Sales"
|
||||
style="height: 40px;"
|
||||
/>
|
||||
</cwidgetsimple-stub>
|
||||
</ccol-stub>
|
||||
|
||||
<ccol-stub
|
||||
lg="2"
|
||||
sm="4"
|
||||
tag="div"
|
||||
>
|
||||
<cwidgetsimple-stub
|
||||
header="title"
|
||||
text="1,123"
|
||||
>
|
||||
<cchartbarsimple-stub
|
||||
backgroundcolor="success"
|
||||
datapoints="10,22,34,46,58,70,46,23,45,78,34,12"
|
||||
label="Sales"
|
||||
style="height: 40px;"
|
||||
/>
|
||||
</cwidgetsimple-stub>
|
||||
</ccol-stub>
|
||||
</crow-stub>
|
||||
</div>
|
||||
`;
|
||||
Reference in New Issue
Block a user