summaryrefslogtreecommitdiffstats
path: root/web_src/js/modules
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-09-27 22:10:08 +0800
committerGitHub <noreply@github.com>2023-09-27 16:10:08 +0200
commitd74fba8175ad3ab80427982ad7c1d9c4a1ee757b (patch)
treef734f21db0359b812f7e5e0534e3101adada50ee /web_src/js/modules
parente4cf9d22a70751410ac79f0d5de4a02fac6295db (diff)
downloadgitea-d74fba8175ad3ab80427982ad7c1d9c4a1ee757b.tar.gz
gitea-d74fba8175ad3ab80427982ad7c1d9c4a1ee757b.zip
Use vitest globals (#27102) (#27311)
Backport #27102 by @silverwind Enable [globals](https://vitest.dev/config/#globals) in vitest, reducing the noise in test files. Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'web_src/js/modules')
-rw-r--r--web_src/js/modules/fetch.test.js1
-rw-r--r--web_src/js/modules/toast.test.js1
2 files changed, 0 insertions, 2 deletions
diff --git a/web_src/js/modules/fetch.test.js b/web_src/js/modules/fetch.test.js
index ec0377b4d9..e4bec3ced9 100644
--- a/web_src/js/modules/fetch.test.js
+++ b/web_src/js/modules/fetch.test.js
@@ -1,4 +1,3 @@
-import {test, expect} from 'vitest';
import {GET, POST, PATCH, PUT, DELETE} from './fetch.js';
// tests here are only to satisfy the linter for unused functions
diff --git a/web_src/js/modules/toast.test.js b/web_src/js/modules/toast.test.js
index b5066df0b2..357f18dbcd 100644
--- a/web_src/js/modules/toast.test.js
+++ b/web_src/js/modules/toast.test.js
@@ -1,4 +1,3 @@
-import {test, expect} from 'vitest';
import {showInfoToast, showErrorToast, showWarningToast} from './toast.js';
test('showInfoToast', async () => {