refactor: fix small bugs, update unit tests

This commit is contained in:
woothu
2019-11-14 14:42:13 +01:00
parent 760dc7ba79
commit b696666806
45 changed files with 45759 additions and 1710 deletions
@@ -0,0 +1,122 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Login.vue renders correctly 1`] = `
<ccontainer-stub
class="d-flex align-items-center min-vh-100"
>
<crow-stub
class="justify-content-center"
gutters="true"
>
<ccol-stub
md="8"
tag="div"
>
<ccardgroup-stub>
<ccard-stub
class="p-4"
>
<ccardbody-stub>
<cform-stub>
<h1>
Login
</h1>
<p
class="text-muted"
>
Sign In to your account
</p>
<cinput-stub
autocomplete="username email"
lazy="400"
placeholder="Username"
type="text"
/>
<cinput-stub
autocomplete="curent-password"
lazy="400"
placeholder="Password"
type="password"
/>
<crow-stub
gutters="true"
>
<ccol-stub
col="6"
tag="div"
>
<cbutton-stub
activeclass="active"
class="px-4"
color="primary"
event="click"
exactactiveclass="active"
routertag="a"
target="_self"
type="button"
>
Login
</cbutton-stub>
</ccol-stub>
<ccol-stub
class="text-right"
col="6"
tag="div"
>
<cbutton-stub
activeclass="active"
class="px-0"
color="link"
event="click"
exactactiveclass="active"
routertag="a"
target="_self"
type="button"
>
Forgot password?
</cbutton-stub>
</ccol-stub>
</crow-stub>
</cform-stub>
</ccardbody-stub>
</ccard-stub>
<ccard-stub
bodywrapper="true"
class="text-center py-5 d-md-down-none"
color="primary"
textcolor="white"
>
<h2>
Sign up
</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</p>
<cbutton-stub
activeclass="active"
class="active mt-3"
color="primary"
event="click"
exactactiveclass="active"
routertag="a"
target="_self"
type="button"
>
Register Now!
</cbutton-stub>
</ccard-stub>
</ccardgroup-stub>
</ccol-stub>
</crow-stub>
</ccontainer-stub>
`;
@@ -0,0 +1,50 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Page404.vue renders correctly 1`] = `
<ccontainer-stub
class="d-flex align-items-center min-vh-100"
>
<crow-stub
class="w-100 justify-content-center"
gutters="true"
>
<ccol-stub
md="6"
tag="div"
>
<div
class="w-100"
>
<div
class="clearfix"
>
<h1
class="float-left display-3 mr-4"
>
404
</h1>
<h4
class="pt-3"
>
Oops! You're lost.
</h4>
<p
class="text-muted"
>
The page you are looking for was not found.
</p>
</div>
<cinput-stub
class="mb-3"
lazy="400"
placeholder="What are you looking for?"
type="text"
/>
</div>
</ccol-stub>
</crow-stub>
</ccontainer-stub>
`;
@@ -0,0 +1,46 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Page500.vue renders correctly 1`] = `
<ccontainer-stub
class="d-flex align-items-center min-vh-100"
>
<crow-stub
class="w-100 justify-content-center"
gutters="true"
>
<ccol-stub
md="6"
tag="div"
>
<div
class="clearfix"
>
<h1
class="float-left display-3 mr-4"
>
500
</h1>
<h4
class="pt-3"
>
Houston, we have a problem!
</h4>
<p
class="text-muted"
>
The page you are looking for is temporarily unavailable.
</p>
</div>
<cinput-stub
class="mb-3"
lazy="400"
placeholder="What are you looking for?"
type="text"
/>
</ccol-stub>
</crow-stub>
</ccontainer-stub>
`;
@@ -0,0 +1,129 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Register.vue renders correctly 1`] = `
<ccontainer-stub
class="min-vh-100 d-flex align-items-center"
>
<crow-stub
class="w-100 justify-content-center"
gutters="true"
>
<ccol-stub
md="6"
sm="8"
tag="div"
>
<ccard-stub
class="mx-4 mb-0"
>
<ccardbody-stub
class="p-4"
>
<cform-stub>
<h1>
Register
</h1>
<p
class="text-muted"
>
Create your account
</p>
<cinput-stub
autocomplete="username"
lazy="400"
placeholder="Username"
type="text"
/>
<cinput-stub
autocomplete="email"
lazy="400"
placeholder="Email"
prepend="@"
type="text"
/>
<cinput-stub
autocomplete="new-password"
lazy="400"
placeholder="Password"
type="password"
/>
<cinput-stub
autocomplete="new-password"
class="mb-4"
lazy="400"
placeholder="Repeat password"
type="password"
/>
<cbutton-stub
activeclass="active"
block="true"
color="success"
event="click"
exactactiveclass="active"
routertag="a"
target="_self"
type="button"
>
Create Account
</cbutton-stub>
</cform-stub>
</ccardbody-stub>
<ccardfooter-stub
class="p-4"
>
<crow-stub
gutters="true"
>
<ccol-stub
col="6"
tag="div"
>
<cbutton-stub
activeclass="active"
block="true"
color="facebook"
event="click"
exactactiveclass="active"
routertag="a"
target="_self"
type="button"
>
Facebook
</cbutton-stub>
</ccol-stub>
<ccol-stub
col="6"
tag="div"
>
<cbutton-stub
activeclass="active"
block="true"
color="twitter"
event="click"
exactactiveclass="active"
routertag="a"
target="_self"
type="button"
>
Twitter
</cbutton-stub>
</ccol-stub>
</crow-stub>
</ccardfooter-stub>
</ccard-stub>
</ccol-stub>
</crow-stub>
</ccontainer-stub>
`;