test: restore and fix unit tests

This commit is contained in:
woothu
2019-08-10 12:07:10 +02:00
parent f9a4949b56
commit 704e04f9f6
89 changed files with 55790 additions and 6 deletions
@@ -0,0 +1,57 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`User.vue renders correctly 1`] = `
<crow-stub>
<ccol-stub
col="12"
lg="6"
tag="div"
>
<ccard-stub
subtitletag="h6"
titletag="h4"
>
<ccardheader-stub
subtitletag="h6"
titletag="h4"
>
User id:
</ccardheader-stub>
<ccardbody-stub
subtitletag="h6"
titletag="h4"
>
<ctable-stub
defaultsorter="[object Object]"
fields="[object Object],[object Object]"
fixed="true"
items="[object Object]"
perpage="10"
small="true"
striped="true"
/>
</ccardbody-stub>
<ccardfooter-stub
subtitletag="h6"
titletag="h4"
>
<cbutton-stub
activeclass="c-active"
event="click"
exactactiveclass="c-active"
routertag="a"
target="_self"
type="button"
variant="primary"
>
Back
</cbutton-stub>
</ccardfooter-stub>
</ccard-stub>
</ccol-stub>
</crow-stub>
`;
@@ -0,0 +1,30 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Users.vue renders correctly 1`] = `
<crow-stub>
<ccol-stub
col="12"
tag="div"
xl="8"
>
<ccard-stub
bodywrapper="true"
headerhtml="users"
name="slide"
subtitletag="h6"
titletag="h4"
>
<ctable-stub
current-page="1"
defaultsorter="[object Object]"
fields="[object Object],[object Object],[object Object],[object Object],[object Object]"
hover="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]"
pagination="[object Object]"
perpage="5"
striped="true"
/>
</ccard-stub>
</ccol-stub>
</crow-stub>
`;