From 2be4f2836996d51a3695d0e621ff1702a64308b7 Mon Sep 17 00:00:00 2001 From: Devlin Junker Date: Wed, 26 Oct 2022 20:32:50 -0700 Subject: use newer libraries and clean up eslint Signed-off-by: Devlin Junker --- tests/javascript/unit/setup.ts | 15 ++++----------- tests/javascript/unit/setupStore.ts | 1 - 2 files changed, 4 insertions(+), 12 deletions(-) (limited to 'tests') diff --git a/tests/javascript/unit/setup.ts b/tests/javascript/unit/setup.ts index 17fc5c058..f1cfee0d7 100644 --- a/tests/javascript/unit/setup.ts +++ b/tests/javascript/unit/setup.ts @@ -1,14 +1,9 @@ -// import { OC } from './OC.js' - import { config } from '@vue/test-utils' -// eslint-disable-next-line node/no-unpublished-import -// import MockDate from 'mockdate' -// eslint-disable-next-line node/no-unpublished-import -// import 'regenerator-runtime/runtime' -// Set date to fixed value -// MockDate.set(new Date('2019-01-01T12:34:56')) +// Note: This was copied from nextcloud/tasks repo +// import { OC } from './OC.js' +// TODO: will this be used? // global.OC = new OC() // Mock nextcloud translate functions @@ -16,15 +11,13 @@ config.mocks.$t = function(_app: any, string: any) { return string } config.mocks.t = config.mocks.$t -// (global as any).t = config.mocks.$t config.mocks.$n = function(app: any, singular: any, plural: any, count: any) { return singular } config.mocks.n = config.mocks.$n -// (global as any).n = config.mocks.$n afterAll(() => { - // MockDate.reset() + }) diff --git a/tests/javascript/unit/setupStore.ts b/tests/javascript/unit/setupStore.ts index 31651ac42..331885cbf 100644 --- a/tests/javascript/unit/setupStore.ts +++ b/tests/javascript/unit/setupStore.ts @@ -1,7 +1,6 @@ import { createLocalVue } from '@vue/test-utils' import Vuex from 'vuex' -// import router from '@/router.js' const localVue = createLocalVue() localVue.use(Vuex) -- cgit v1.2.3