From 75f0d3c093de01365f85e8e3035291d9a9a8c889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Tue, 10 Jul 2018 18:40:59 +0200 Subject: Vue cleanup and init MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- tests/unit/specs/Contacts.spec.js | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 tests/unit/specs/Contacts.spec.js (limited to 'tests') diff --git a/tests/unit/specs/Contacts.spec.js b/tests/unit/specs/Contacts.spec.js new file mode 100644 index 00000000..9b2bd63e --- /dev/null +++ b/tests/unit/specs/Contacts.spec.js @@ -0,0 +1,31 @@ +/* + * @copyright Copyright (c) 2018 John Molakvoæ + * + * @author John Molakvoæ + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + +import { mount } from '@vue/test-utils' +import Contacts from '@/views/Contacts.vue' + +describe('Contacts.vue', () => { + it('Test contacts view', () => { + const wrapper = mount(Contacts) + expect(wrapper.text()).toContain('Test') + }) +}) -- cgit v1.2.3