diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-08-30 10:36:23 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-08-30 10:36:23 +0200 |
commit | 021b6e975f6a263b96074502cabe4baf0eb6f875 (patch) | |
tree | 0ebe5c4ac8c8bf4817845df632b1fcbe1746e5a3 /components/NavLink/NavLink.test.js | |
parent | 4f0d4d224e2d77a257e90d64d17d7218011f8613 (diff) | |
download | puszcza-021b6e975f6a263b96074502cabe4baf0eb6f875.tar.gz puszcza-021b6e975f6a263b96074502cabe4baf0eb6f875.zip |
Add testing
Diffstat (limited to 'components/NavLink/NavLink.test.js')
-rw-r--r-- | components/NavLink/NavLink.test.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/components/NavLink/NavLink.test.js b/components/NavLink/NavLink.test.js deleted file mode 100644 index a5da412..0000000 --- a/components/NavLink/NavLink.test.js +++ /dev/null @@ -1,20 +0,0 @@ -import { mount } from '@vue/test-utils'; -import NavLink from './index.vue'; - -describe('NavLink', () => { - // Now mount the component and you have the wrapper - const wrapper = mount(NavLink); - - wrapper.setProps({ link: '/link', name: 'Link' }); - - it('renders the correct markup', () => { - expect(wrapper.html()).toContain(` <li class="navlink"> - <a class="link" href="/link">Link</a> - </li>`); - }); - - // it's also easy to check for the existence of elements - it('has a button', () => { - expect(wrapper.contains('button')).toBe(true); - }); -}); |