test: update tests and snapshots

This commit is contained in:
woothu
2019-09-23 14:53:04 +02:00
parent e31a6c7542
commit 1143880608
82 changed files with 11751 additions and 12325 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ Vue.use(CoreuiVue)
describe('Login.vue', () => {
it('has a name', () => {
expect(Login.name).toMatch('Login')
expect(Login.name).toBe('Login')
})
it('is Vue instance', () => {
const wrapper = shallowMount(Login)
+1 -1
View File
@@ -7,7 +7,7 @@ Vue.use(CoreuiVue)
describe('Page404.vue', () => {
it('has a name', () => {
expect(Page404.name).toMatch('Page404')
expect(Page404.name).toBe('Page404')
})
it('is Vue instance', () => {
const wrapper = shallowMount(Page404)
+1 -1
View File
@@ -7,7 +7,7 @@ Vue.use(CoreuiVue)
describe('Page500.vue', () => {
it('has a name', () => {
expect(Page500.name).toMatch('Page500')
expect(Page500.name).toBe('Page500')
})
it('is Vue instance', () => {
const wrapper = shallowMount(Page500)
+1 -1
View File
@@ -7,7 +7,7 @@ Vue.use(CoreuiVue)
describe('Register.vue', () => {
it('has a name', () => {
expect(Register.name).toMatch('Register')
expect(Register.name).toBe('Register')
})
it('is Vue instance', () => {
const wrapper = shallowMount(Register)
@@ -2,10 +2,10 @@
exports[`Login.vue renders correctly 1`] = `
<ccontainer-stub
class="c-d-flex c-align-items-center c-min-vh-100"
class="d-flex align-items-center min-vh-100"
>
<crow-stub
class="c-justify-content-center"
class="justify-content-center"
>
<ccol-stub
md="8"
@@ -13,7 +13,7 @@ exports[`Login.vue renders correctly 1`] = `
>
<ccardgroup-stub>
<ccard-stub
class="c-p-4"
class="p-4"
subtitletag="h6"
titletag="h4"
>
@@ -27,7 +27,7 @@ exports[`Login.vue renders correctly 1`] = `
</h1>
<p
class="c-text-muted"
class="text-muted"
>
Sign In to your account
</p>
@@ -54,10 +54,10 @@ exports[`Login.vue renders correctly 1`] = `
tag="div"
>
<cbutton-stub
activeclass="c-active"
class="c-px-4"
activeclass="active"
class="px-4"
event="click"
exactactiveclass="c-active"
exactactiveclass="active"
routertag="a"
target="_self"
type="button"
@@ -68,15 +68,15 @@ exports[`Login.vue renders correctly 1`] = `
</ccol-stub>
<ccol-stub
class="c-text-right"
class="text-right"
col="6"
tag="div"
>
<cbutton-stub
activeclass="c-active"
class="c-px-0"
activeclass="active"
class="px-0"
event="click"
exactactiveclass="c-active"
exactactiveclass="active"
routertag="a"
target="_self"
type="button"
@@ -92,7 +92,7 @@ exports[`Login.vue renders correctly 1`] = `
<ccard-stub
bodywrapper="true"
class="c-text-white c-text-center c-bg-primary c-py-5 c-d-md-down-none"
class="text-white text-center bg-primary py-5 d-md-down-none"
subtitletag="h6"
titletag="h4"
>
@@ -105,10 +105,10 @@ exports[`Login.vue renders correctly 1`] = `
</p>
<cbutton-stub
activeclass="c-active"
class="c-active c-mt-3"
activeclass="active"
class="active mt-3"
event="click"
exactactiveclass="c-active"
exactactiveclass="active"
routertag="a"
target="_self"
type="button"
@@ -2,42 +2,42 @@
exports[`Page404.vue renders correctly 1`] = `
<ccontainer-stub
class="c-d-flex c-align-items-center c-min-vh-100"
class="d-flex align-items-center min-vh-100"
>
<crow-stub
class="c-w-100 c-justify-content-center"
class="w-100 justify-content-center"
>
<ccol-stub
md="6"
tag="div"
>
<div
class="c-w-100"
class="w-100"
>
<div
class="c-clearfix"
class="clearfix"
>
<h1
class="c-float-left c-display-3 c-mr-4"
class="float-left display-3 mr-4"
>
404
</h1>
<h4
class="c-pt-3"
class="pt-3"
>
Oops! You're lost.
</h4>
<p
class="c-text-muted"
class="text-muted"
>
The page you are looking for was not found.
</p>
</div>
<cforminput-stub
class="c-mb-0"
class="mb-0"
lazy="400"
placeholder="What are you looking for?"
prependhtml=<i class='cui-magnifying-glass'></i>
@@ -2,39 +2,39 @@
exports[`Page500.vue renders correctly 1`] = `
<ccontainer-stub
class="c-d-flex c-align-items-center c-min-vh-100"
class="d-flex align-items-center min-vh-100"
>
<crow-stub
class="c-w-100 c-justify-content-center"
class="w-100 justify-content-center"
>
<ccol-stub
md="6"
tag="div"
>
<div
class="c-clearfix"
class="clearfix"
>
<h1
class="c-float-left c-display-3 c-mr-4"
class="float-left display-3 mr-4"
>
500
</h1>
<h4
class="c-pt-3"
class="pt-3"
>
Houston, we have a problem!
</h4>
<p
class="c-text-muted"
class="text-muted"
>
The page you are looking for is temporarily unavailable.
</p>
</div>
<cforminput-stub
class="c-mb-0"
class="mb-0"
lazy="400"
placeholder="What are you looking for?"
prependhtml=<i class='cui-magnifying-glass'></i>
@@ -2,10 +2,10 @@
exports[`Register.vue renders correctly 1`] = `
<ccontainer-stub
class="c-min-vh-100 c-d-flex c-align-items-center"
class="min-vh-100 d-flex align-items-center"
>
<crow-stub
class="c-w-100 c-justify-content-center"
class="w-100 justify-content-center"
>
<ccol-stub
md="6"
@@ -13,12 +13,12 @@ exports[`Register.vue renders correctly 1`] = `
tag="div"
>
<ccard-stub
class="c-mx-4"
class="mx-4"
subtitletag="h6"
titletag="h4"
>
<ccardbody-stub
class="c-p-4"
class="p-4"
subtitletag="h6"
titletag="h4"
>
@@ -28,7 +28,7 @@ exports[`Register.vue renders correctly 1`] = `
</h1>
<p
class="c-text-muted"
class="text-muted"
>
Create your account
</p>
@@ -59,7 +59,7 @@ exports[`Register.vue renders correctly 1`] = `
<cforminput-stub
autocomplete="new-password"
class="c-mb-4"
class="mb-4"
lazy="400"
placeholder="Repeat password"
prependhtml=<i class='cui-lock-locked'></i>
@@ -67,10 +67,10 @@ exports[`Register.vue renders correctly 1`] = `
/>
<cbutton-stub
activeclass="c-active"
activeclass="active"
block="true"
event="click"
exactactiveclass="c-active"
exactactiveclass="active"
routertag="a"
target="_self"
type="button"
@@ -82,7 +82,7 @@ exports[`Register.vue renders correctly 1`] = `
</ccardbody-stub>
<ccardfooter-stub
class="c-p-4"
class="p-4"
subtitletag="h6"
titletag="h4"
>
@@ -92,10 +92,10 @@ exports[`Register.vue renders correctly 1`] = `
tag="div"
>
<cbutton-stub
activeclass="c-active"
activeclass="active"
block="true"
event="click"
exactactiveclass="c-active"
exactactiveclass="active"
routertag="a"
target="_self"
texthtml="Facebook"
@@ -109,10 +109,10 @@ exports[`Register.vue renders correctly 1`] = `
tag="div"
>
<cbutton-stub
activeclass="c-active"
activeclass="active"
block="true"
event="click"
exactactiveclass="c-active"
exactactiveclass="active"
routertag="a"
target="_self"
texthtml="Twitter"