From 73e5c7a20e5e8f6a54ab484ea2ce1aac16200b1d Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Thu, 28 Nov 2019 13:15:22 +0100 Subject: Fix tests --- tests/pages/__snapshots__/download.test.js.snap | 25 ------------------------- tests/pages/do-pobrania.js | 11 +++++++++++ tests/pages/download.test.js | 11 ----------- 3 files changed, 11 insertions(+), 36 deletions(-) delete mode 100644 tests/pages/__snapshots__/download.test.js.snap create mode 100644 tests/pages/do-pobrania.js delete mode 100644 tests/pages/download.test.js (limited to 'tests') 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`] = ` -
-

- Do pobrania -

- - - Karta próby na sprawność - - - - Próba Harcerza - -
-`; 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/download.test.js b/tests/pages/download.test.js deleted file mode 100644 index 78f16d9..0000000 --- a/tests/pages/download.test.js +++ /dev/null @@ -1,11 +0,0 @@ -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() - }) -}) -- cgit 1.4.1