about summary refs log tree commit diff
path: root/test/pages
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-10-01 19:42:19 +0200
committerGitHub <noreply@github.com>2019-10-01 19:42:19 +0200
commit11b4d4779d7c955f99ababa5b7abe9281912de08 (patch)
treebe6289a6c5972312584cc315425171b828c8bf58 /test/pages
parent89837b8756590bd97b82450c6a445702f7ab5077 (diff)
parent89a60dbbbadee2fbccddddc47e92aaf8dce6525a (diff)
downloadpuszcza-11b4d4779d7c955f99ababa5b7abe9281912de08.tar.gz
puszcza-11b4d4779d7c955f99ababa5b7abe9281912de08.zip
Merge pull request #2 from 19pdh/develop
Merge from develop
Diffstat (limited to 'test/pages')
-rw-r--r--test/pages/404.test.js11
-rw-r--r--test/pages/__snapshots__/404.test.js.snap13
-rw-r--r--test/pages/__snapshots__/download.test.js.snap25
-rw-r--r--test/pages/__snapshots__/index.test.js.snap9
-rw-r--r--test/pages/__snapshots__/kontakt.test.js.snap31
-rw-r--r--test/pages/__snapshots__/o-nas.test.js.snap7
-rw-r--r--test/pages/download.test.js11
-rw-r--r--test/pages/index.test.js11
-rw-r--r--test/pages/kontakt.test.js11
-rw-r--r--test/pages/o-nas.test.js11
10 files changed, 140 insertions, 0 deletions
diff --git a/test/pages/404.test.js b/test/pages/404.test.js
new file mode 100644
index 0000000..76322da
--- /dev/null
+++ b/test/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/test/pages/__snapshots__/404.test.js.snap b/test/pages/__snapshots__/404.test.js.snap
new file mode 100644
index 0000000..44419f9
--- /dev/null
+++ b/test/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/test/pages/__snapshots__/download.test.js.snap b/test/pages/__snapshots__/download.test.js.snap
new file mode 100644
index 0000000..05d1361
--- /dev/null
+++ b/test/pages/__snapshots__/download.test.js.snap
@@ -0,0 +1,25 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`download match snapshot 1`] = `
+<div
+  class="container"
+>
+  <h1>
+    Do pobrania
+  </h1>
+   
+  <a
+    class="link"
+    href="/files/Karta_próby_na_sprawność.pdf"
+  >
+    Karta próby na sprawność
+  </a>
+   
+  <a
+    class="link"
+    href="/files/Próba_Harcerza.pdf"
+  >
+    Próba Harcerza
+  </a>
+</div>
+`;
diff --git a/test/pages/__snapshots__/index.test.js.snap b/test/pages/__snapshots__/index.test.js.snap
new file mode 100644
index 0000000..af3d906
--- /dev/null
+++ b/test/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/test/pages/__snapshots__/kontakt.test.js.snap b/test/pages/__snapshots__/kontakt.test.js.snap
new file mode 100644
index 0000000..22be789
--- /dev/null
+++ b/test/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/test/pages/__snapshots__/o-nas.test.js.snap b/test/pages/__snapshots__/o-nas.test.js.snap
new file mode 100644
index 0000000..fbdc54c
--- /dev/null
+++ b/test/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/test/pages/download.test.js b/test/pages/download.test.js
new file mode 100644
index 0000000..78f16d9
--- /dev/null
+++ b/test/pages/download.test.js
@@ -0,0 +1,11 @@
+import { shallowMount } from '@vue/test-utils'
+import download from '../../pages/download'
+
+describe('download', () => {
+  // Now mount the component and you have the wrapper
+  const wrapper = shallowMount(download)
+
+  it('match snapshot', () => {
+    expect(wrapper.element).toMatchSnapshot()
+  })
+})
diff --git a/test/pages/index.test.js b/test/pages/index.test.js
new file mode 100644
index 0000000..1e262b3
--- /dev/null
+++ b/test/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/test/pages/kontakt.test.js b/test/pages/kontakt.test.js
new file mode 100644
index 0000000..d99e120
--- /dev/null
+++ b/test/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/test/pages/o-nas.test.js b/test/pages/o-nas.test.js
new file mode 100644
index 0000000..8b87253
--- /dev/null
+++ b/test/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()
+  })
+})