diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-11-28 07:25:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-28 07:25:54 -0500 |
commit | faaf63ad895bd51541a9984273d52c71645a0b28 (patch) | |
tree | 90e949913650da4b619e3ab1e875731b1410d93f /tests/pages | |
parent | 72549ed7b81fc01445fecdb7889bab4cf2a1590f (diff) | |
parent | 73e5c7a20e5e8f6a54ab484ea2ce1aac16200b1d (diff) | |
download | puszcza-faaf63ad895bd51541a9984273d52c71645a0b28.tar.gz puszcza-faaf63ad895bd51541a9984273d52c71645a0b28.zip |
Merge pull request #8 from 19pdh/develop
Posts & ranking
Diffstat (limited to 'tests/pages')
-rw-r--r-- | tests/pages/404.test.js | 11 | ||||
-rw-r--r-- | tests/pages/__snapshots__/404.test.js.snap | 13 | ||||
-rw-r--r-- | tests/pages/__snapshots__/index.test.js.snap | 9 | ||||
-rw-r--r-- | tests/pages/__snapshots__/kontakt.test.js.snap | 31 | ||||
-rw-r--r-- | tests/pages/__snapshots__/o-nas.test.js.snap | 7 | ||||
-rw-r--r-- | tests/pages/do-pobrania.js | 11 | ||||
-rw-r--r-- | tests/pages/index.test.js | 11 | ||||
-rw-r--r-- | tests/pages/kontakt.test.js | 11 | ||||
-rw-r--r-- | tests/pages/o-nas.test.js | 11 |
9 files changed, 115 insertions, 0 deletions
diff --git a/tests/pages/404.test.js b/tests/pages/404.test.js new file mode 100644 index 0000000..76322da --- /dev/null +++ b/tests/pages/404.test.js @@ -0,0 +1,11 @@ +import { shallowMount } from '@vue/test-utils' +import page404 from '../../pages/404' + +describe('404', () => { + // Now mount the component and you have the wrapper + const wrapper = shallowMount(page404) + + it('match snapshot', () => { + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/tests/pages/__snapshots__/404.test.js.snap b/tests/pages/__snapshots__/404.test.js.snap new file mode 100644 index 0000000..44419f9 --- /dev/null +++ b/tests/pages/__snapshots__/404.test.js.snap @@ -0,0 +1,13 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`404 match snapshot 1`] = ` +<div> + <h1> + 404 + </h1> + + <p> + Nie znaleziono strony + </p> +</div> +`; diff --git a/tests/pages/__snapshots__/index.test.js.snap b/tests/pages/__snapshots__/index.test.js.snap new file mode 100644 index 0000000..af3d906 --- /dev/null +++ b/tests/pages/__snapshots__/index.test.js.snap @@ -0,0 +1,9 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`index match snapshot 1`] = ` +<div> + <joinus-stub /> + + <facebookfeed-stub /> +</div> +`; diff --git a/tests/pages/__snapshots__/kontakt.test.js.snap b/tests/pages/__snapshots__/kontakt.test.js.snap new file mode 100644 index 0000000..22be789 --- /dev/null +++ b/tests/pages/__snapshots__/kontakt.test.js.snap @@ -0,0 +1,31 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`kontakt match snapshot 1`] = ` +<div> + <h1> + Kontakt z drużynowym + </h1> + + <p> + + tel: + + <a + href="tel:+48695516492" + > + +48695516492 + </a> + </p> + + <p> + + email: + + <a + href="mailto:patryk.niedzwiedzinski@zhr.pl" + > + patryk.niedzwiedzinski@zhr.pl + </a> + </p> +</div> +`; diff --git a/tests/pages/__snapshots__/o-nas.test.js.snap b/tests/pages/__snapshots__/o-nas.test.js.snap new file mode 100644 index 0000000..fbdc54c --- /dev/null +++ b/tests/pages/__snapshots__/o-nas.test.js.snap @@ -0,0 +1,7 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Onas match snapshot 1`] = ` +<h1> + O nas +</h1> +`; diff --git a/tests/pages/do-pobrania.js b/tests/pages/do-pobrania.js new file mode 100644 index 0000000..d4bd649 --- /dev/null +++ b/tests/pages/do-pobrania.js @@ -0,0 +1,11 @@ +import { shallowMount } from '@vue/test-utils' +import doPobrania from '../../pages/do-pobrania' + +describe('doPobrania', () => { + // Now mount the component and you have the wrapper + const wrapper = shallowMount(doPobrania) + + it('match snapshot', () => { + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/tests/pages/index.test.js b/tests/pages/index.test.js new file mode 100644 index 0000000..1e262b3 --- /dev/null +++ b/tests/pages/index.test.js @@ -0,0 +1,11 @@ +import { shallowMount } from '@vue/test-utils' +import index from '../../pages/index' + +describe('index', () => { + // Now mount the component and you have the wrapper + const wrapper = shallowMount(index) + + it('match snapshot', () => { + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/tests/pages/kontakt.test.js b/tests/pages/kontakt.test.js new file mode 100644 index 0000000..d99e120 --- /dev/null +++ b/tests/pages/kontakt.test.js @@ -0,0 +1,11 @@ +import { shallowMount } from '@vue/test-utils' +import kontakt from '../../pages/kontakt' + +describe('kontakt', () => { + // Now mount the component and you have the wrapper + const wrapper = shallowMount(kontakt) + + it('match snapshot', () => { + expect(wrapper.element).toMatchSnapshot() + }) +}) diff --git a/tests/pages/o-nas.test.js b/tests/pages/o-nas.test.js new file mode 100644 index 0000000..8b87253 --- /dev/null +++ b/tests/pages/o-nas.test.js @@ -0,0 +1,11 @@ +import { shallowMount } from '@vue/test-utils' +import Onas from '../../pages/o-nas' + +describe('Onas', () => { + // Now mount the component and you have the wrapper + const wrapper = shallowMount(Onas) + + it('match snapshot', () => { + expect(wrapper.element).toMatchSnapshot() + }) +}) |