diff options
author | Devlin Junker <devlin.junker@gmail.com> | 2023-08-06 12:41:02 -0700 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2023-08-09 11:08:04 +0200 |
commit | eeb06381c95ca28050aecc7bcb4729353f05419a (patch) | |
tree | 67acd9b79a5b8b76f78dfe74c7b70d245e44b2ca | |
parent | 923f986e67413ac548cc98d6d59fa01de9681035 (diff) |
fix unit test and linting errors
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
-rw-r--r-- | src/components/AdminSettings.vue | 2 | ||||
-rw-r--r-- | src/main.js | 1 | ||||
-rw-r--r-- | tests/javascript/unit/components/AdminSettings.spec.ts | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/src/components/AdminSettings.vue b/src/components/AdminSettings.vue index 881b57d27..f8922b57d 100644 --- a/src/components/AdminSettings.vue +++ b/src/components/AdminSettings.vue @@ -121,7 +121,7 @@ import { confirmPassword } from '@nextcloud/password-confirmation' * Debounce helper for method * TODO: Should we remove this and use library? * - * @param {function()} func - The callback function + * @param {Function} func - The callback function * @param {number} wait - Time to wait in miliseconds */ function debounce(func, wait) { diff --git a/src/main.js b/src/main.js index 2f11a8216..e2ddda527 100644 --- a/src/main.js +++ b/src/main.js @@ -1,4 +1,3 @@ - import Vue from 'vue' import VueRouter from 'vue-router' import Vuex, { Store } from 'vuex' diff --git a/tests/javascript/unit/components/AdminSettings.spec.ts b/tests/javascript/unit/components/AdminSettings.spec.ts index 06e88a6cc..865b30416 100644 --- a/tests/javascript/unit/components/AdminSettings.spec.ts +++ b/tests/javascript/unit/components/AdminSettings.spec.ts @@ -24,7 +24,7 @@ describe('AdminSettings.vue', () => { }) it('should initialize and fetch settings from state', () => { - expect(loadState).toBeCalledTimes(7) + expect(loadState).toBeCalledTimes(8) }) it('should send post with updated settings', async () => { |