From 8fe072b26b629410c928f6d84dbb8e0ed78f06e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Tue, 3 Mar 2020 10:46:08 +0100 Subject: Cleanup old unused tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- tests/setup.js | 37 ------------------------------------- tests/unit/specs/Contacts.spec.js | 25 ------------------------- 2 files changed, 62 deletions(-) delete mode 100644 tests/setup.js delete mode 100644 tests/unit/specs/Contacts.spec.js (limited to 'tests') diff --git a/tests/setup.js b/tests/setup.js deleted file mode 100644 index ef86d905..00000000 --- a/tests/setup.js +++ /dev/null @@ -1,37 +0,0 @@ -/** - * @copyright 2018 Christoph Wurst - * - * @author 2018 Christoph Wurst - * - * @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 . - */ - -require('jsdom-global')() -global.expect = require('chai').expect - -// https://github.com/vuejs/vue-test-utils/issues/936 -// better fix for "TypeError: Super expression must either be null or -// a function" than pinning an old version of prettier. -// -// https://github.com/vuejs/vue-cli/issues/2128#issuecomment-453109575 -window.Date = Date - -global.OC = { - getLocale: () => 'en', -} - -global.t = (app, text) => text -global.n = (app, textSingular, textPlural, count) => count > 1 ? textPlural : textSingular diff --git a/tests/unit/specs/Contacts.spec.js b/tests/unit/specs/Contacts.spec.js deleted file mode 100644 index f044d797..00000000 --- a/tests/unit/specs/Contacts.spec.js +++ /dev/null @@ -1,25 +0,0 @@ -/** - * @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 . - * - */ - -// eslint-disable-next-line node/no-unpublished-import -// import { mount } from '@vue/test-utils' -// import Contacts from '../../../src/views/Contacts.vue' -- cgit v1.2.3