about summary refs log tree commit diff
path: root/tests/components
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2019-12-05 11:56:11 -0500
committerGitHub <noreply@github.com>2019-12-05 11:56:11 -0500
commitcd7fa1fb5d499e51b9f2bc833159ee4581b8f2a8 (patch)
treebe10296e0268295db20c536af045c5df6c829a0e /tests/components
parent070b7725be5fb0db486e9370bea5648c16c8bbfe (diff)
parent34908ab59f58f3d5b229867c84d8b51b07c777d4 (diff)
downloadpuszcza-cd7fa1fb5d499e51b9f2bc833159ee4581b8f2a8.tar.gz
puszcza-cd7fa1fb5d499e51b9f2bc833159ee4581b8f2a8.zip
Merge pull request #13 from 19pdh/storybook
Storybook
Diffstat (limited to 'tests/components')
-rw-r--r--tests/components/FacebookFeed.test.js11
-rw-r--r--tests/components/FacebookFindUsButton.test.js11
-rw-r--r--tests/components/Footer.test.js20
-rw-r--r--tests/components/JoinUs.test.js11
-rw-r--r--tests/components/NavBar.test.js27
-rw-r--r--tests/components/NavLink.test.js23
-rw-r--r--tests/components/__snapshots__/FacebookFeed.test.js.snap13
-rw-r--r--tests/components/__snapshots__/FacebookFindUsButton.test.js.snap19
-rw-r--r--tests/components/__snapshots__/Footer.test.js.snap66
-rw-r--r--tests/components/__snapshots__/JoinUs.test.js.snap31
-rw-r--r--tests/components/__snapshots__/NavBar.test.js.snap40
-rw-r--r--tests/components/__snapshots__/NavLink.test.js.snap14
12 files changed, 0 insertions, 286 deletions
diff --git a/tests/components/FacebookFeed.test.js b/tests/components/FacebookFeed.test.js
deleted file mode 100644
index 7abedf6..0000000
--- a/tests/components/FacebookFeed.test.js
+++ /dev/null
@@ -1,11 +0,0 @@
-import { shallowMount } from '@vue/test-utils'
-import FacebookFeed from '../../components/FacebookFeed'
-
-describe('FacebookFeed', () => {
-  // Now mount the component and you have the wrapper
-  const wrapper = shallowMount(FacebookFeed)
-
-  it('match snapshot', () => {
-    expect(wrapper.element).toMatchSnapshot()
-  })
-})
diff --git a/tests/components/FacebookFindUsButton.test.js b/tests/components/FacebookFindUsButton.test.js
deleted file mode 100644
index d74e16f..0000000
--- a/tests/components/FacebookFindUsButton.test.js
+++ /dev/null
@@ -1,11 +0,0 @@
-import { shallowMount } from '@vue/test-utils'
-import FacebookFindUsButton from '../../components/FacebookFindUsButton'
-
-describe('FacebookFindUsButton', () => {
-  // Now mount the component and you have the wrapper
-  const wrapper = shallowMount(FacebookFindUsButton)
-
-  it('match snapshot', () => {
-    expect(wrapper.element).toMatchSnapshot()
-  })
-})
diff --git a/tests/components/Footer.test.js b/tests/components/Footer.test.js
deleted file mode 100644
index e284b5a..0000000
--- a/tests/components/Footer.test.js
+++ /dev/null
@@ -1,20 +0,0 @@
-import { shallowMount } from '@vue/test-utils'
-import Footer from '../../components/Footer'
-
-describe('Footer', () => {
-  // Now mount the component and you have the wrapper
-  const wrapper = shallowMount(Footer)
-
-  wrapper.setProps({
-    routes: [
-      {
-        path: '/',
-        name: 'Home'
-      }
-    ]
-  })
-
-  it('match snapshot', () => {
-    expect(wrapper.element).toMatchSnapshot()
-  })
-})
diff --git a/tests/components/JoinUs.test.js b/tests/components/JoinUs.test.js
deleted file mode 100644
index c831459..0000000
--- a/tests/components/JoinUs.test.js
+++ /dev/null
@@ -1,11 +0,0 @@
-import { shallowMount } from '@vue/test-utils'
-import JoinUs from '../../components/JoinUs'
-
-describe('JoinUs', () => {
-  // Now mount the component and you have the wrapper
-  const wrapper = shallowMount(JoinUs)
-
-  it('match snapshot', () => {
-    expect(wrapper.element).toMatchSnapshot()
-  })
-})
diff --git a/tests/components/NavBar.test.js b/tests/components/NavBar.test.js
deleted file mode 100644
index be61915..0000000
--- a/tests/components/NavBar.test.js
+++ /dev/null
@@ -1,27 +0,0 @@
-import { shallowMount } from '@vue/test-utils'
-import NavBar from '../../components/NavBar'
-
-describe('NavBar', () => {
-  // Now mount the component and you have the wrapper
-  const wrapper = shallowMount(NavBar)
-
-  wrapper.setProps({
-    title: 'Title',
-    routes: [
-      {
-        path: '/',
-        name: 'Home'
-      }
-    ]
-  })
-
-  it('check title', () => {
-    expect(wrapper.html()).toContain(
-      '<nuxt-link to="/" class="title-name">Title</nuxt-link>'
-    )
-  })
-
-  it('match snapshot', () => {
-    expect(wrapper.element).toMatchSnapshot()
-  })
-})
diff --git a/tests/components/NavLink.test.js b/tests/components/NavLink.test.js
deleted file mode 100644
index d35e6db..0000000
--- a/tests/components/NavLink.test.js
+++ /dev/null
@@ -1,23 +0,0 @@
-import { shallowMount } from '@vue/test-utils'
-import NavLink from '../../components/NavLink'
-
-describe('NavLink', () => {
-  // Now mount the component and you have the wrapper
-  const wrapper = shallowMount(NavLink)
-
-  wrapper.setProps({ link: '/link', name: 'Link' })
-
-  it('renders the correct markup', () => {
-    expect(wrapper.html()).toContain(
-      `<li class="navlink"><nuxt-link class="link" to="/link">Link</nuxt-link></li>`
-    )
-  })
-
-  it('check text', () => {
-    expect(wrapper.text()).toBe('Link')
-  })
-
-  it('match snapshot', () => {
-    expect(wrapper.element).toMatchSnapshot()
-  })
-})
diff --git a/tests/components/__snapshots__/FacebookFeed.test.js.snap b/tests/components/__snapshots__/FacebookFeed.test.js.snap
deleted file mode 100644
index 6819e12..0000000
--- a/tests/components/__snapshots__/FacebookFeed.test.js.snap
+++ /dev/null
@@ -1,13 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`FacebookFeed match snapshot 1`] = `
-<section
-  class="feed"
->
-  <h1>
-    Zobacz co się dzieje!
-  </h1>
-   
-  <facebookfindusbutton-stub />
-</section>
-`;
diff --git a/tests/components/__snapshots__/FacebookFindUsButton.test.js.snap b/tests/components/__snapshots__/FacebookFindUsButton.test.js.snap
deleted file mode 100644
index 98783c4..0000000
--- a/tests/components/__snapshots__/FacebookFindUsButton.test.js.snap
+++ /dev/null
@@ -1,19 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`FacebookFindUsButton match snapshot 1`] = `
-<a
-  href="https://facebook.com/19pdhpuszcza"
-  rel="noopener"
-  target="_blank"
->
-  <div
-    class="button"
-  >
-    <img
-      alt="Find us on Facebook"
-      class="image"
-      src="/assets/social/find_us_fb.png"
-    />
-  </div>
-</a>
-`;
diff --git a/tests/components/__snapshots__/Footer.test.js.snap b/tests/components/__snapshots__/Footer.test.js.snap
deleted file mode 100644
index 577f85e..0000000
--- a/tests/components/__snapshots__/Footer.test.js.snap
+++ /dev/null
@@ -1,66 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`Footer match snapshot 1`] = `
-<div
-  class="footer"
-  style="background-color: rgb(80, 123, 52);"
->
-  <div
-    class="map"
-  >
-    <div
-      class="routes"
-    >
-      <nuxt-link
-        to="/"
-      >
-        Home
-      </nuxt-link>
-    </div>
-     
-    <div
-      class="routes"
-    />
-  </div>
-   
-  <div
-    class="space"
-  />
-   
-  <div
-    class="author"
-  >
-    <p>
-      19 Poznańska Drużyna Harcerzy Puszcza
-    </p>
-     
-    <div
-      class="social"
-    >
-      <a
-        href="https://github.com/19pdh/"
-        rel="”noopener”"
-        target="_blank"
-      >
-        <img
-          alt="Github"
-          class="icon"
-          src="/assets/social/github.png"
-        />
-      </a>
-       
-      <a
-        href="https://www.facebook.com/19pdhpuszcza/"
-        rel="”noopener”"
-        target="_blank"
-      >
-        <img
-          alt="Facebook"
-          class="icon"
-          src="/assets/social/facebook.png"
-        />
-      </a>
-    </div>
-  </div>
-</div>
-`;
diff --git a/tests/components/__snapshots__/JoinUs.test.js.snap b/tests/components/__snapshots__/JoinUs.test.js.snap
deleted file mode 100644
index 832268c..0000000
--- a/tests/components/__snapshots__/JoinUs.test.js.snap
+++ /dev/null
@@ -1,31 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`JoinUs match snapshot 1`] = `
-<section
-  class="joinus"
->
-  <div
-    class="heading"
-  >
-    <div
-      class="title"
-    >
-      <div
-        class="text"
-      >
-        Rozpocznij swoją harcerską przygodę!
-      </div>
-    </div>
-     
-    <div
-      class="button"
-    >
-      <router-link
-        to="/kontakt"
-      >
-        Dołącz do nas!
-      </router-link>
-    </div>
-  </div>
-</section>
-`;
diff --git a/tests/components/__snapshots__/NavBar.test.js.snap b/tests/components/__snapshots__/NavBar.test.js.snap
deleted file mode 100644
index 89ef8e5..0000000
--- a/tests/components/__snapshots__/NavBar.test.js.snap
+++ /dev/null
@@ -1,40 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`NavBar match snapshot 1`] = `
-<nav
-  class="navbar"
->
-  <div
-    class="title"
-  >
-    <!---->
-     
-    <nuxt-link
-      class="title-name"
-      to="/"
-    >
-      Title
-    </nuxt-link>
-  </div>
-   
-  <div
-    class="space"
-  />
-   
-  <button
-    class="menu-toggler"
-  >
-    Menu
-  </button>
-   
-  <ul
-    class="links"
-  >
-    <navlink-stub
-      link="/"
-      name="Home"
-    />
-      
-  </ul>
-</nav>
-`;
diff --git a/tests/components/__snapshots__/NavLink.test.js.snap b/tests/components/__snapshots__/NavLink.test.js.snap
deleted file mode 100644
index 122e5c8..0000000
--- a/tests/components/__snapshots__/NavLink.test.js.snap
+++ /dev/null
@@ -1,14 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`NavLink match snapshot 1`] = `
-<li
-  class="navlink"
->
-  <nuxt-link
-    class="link"
-    to="/link"
-  >
-    Link
-  </nuxt-link>
-</li>
-`;