diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-11-28 13:15:22 +0100 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-11-28 13:15:22 +0100 |
commit | 73e5c7a20e5e8f6a54ab484ea2ce1aac16200b1d (patch) | |
tree | 90e949913650da4b619e3ab1e875731b1410d93f /tests | |
parent | 09fd52c2900a9eb3285ccc0f7574b945f9c8a69d (diff) | |
download | puszcza-73e5c7a20e5e8f6a54ab484ea2ce1aac16200b1d.tar.gz puszcza-73e5c7a20e5e8f6a54ab484ea2ce1aac16200b1d.zip |
Fix tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pages/__snapshots__/download.test.js.snap | 25 | ||||
-rw-r--r-- | tests/pages/do-pobrania.js (renamed from tests/pages/download.test.js) | 6 |
2 files changed, 3 insertions, 28 deletions
diff --git a/tests/pages/__snapshots__/download.test.js.snap b/tests/pages/__snapshots__/download.test.js.snap deleted file mode 100644 index 05d1361..0000000 --- a/tests/pages/__snapshots__/download.test.js.snap +++ /dev/null @@ -1,25 +0,0 @@ -// 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/tests/pages/download.test.js b/tests/pages/do-pobrania.js index 78f16d9..d4bd649 100644 --- a/tests/pages/download.test.js +++ b/tests/pages/do-pobrania.js @@ -1,9 +1,9 @@ import { shallowMount } from '@vue/test-utils' -import download from '../../pages/download' +import doPobrania from '../../pages/do-pobrania' -describe('download', () => { +describe('doPobrania', () => { // Now mount the component and you have the wrapper - const wrapper = shallowMount(download) + const wrapper = shallowMount(doPobrania) it('match snapshot', () => { expect(wrapper.element).toMatchSnapshot() |