aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2024-03-21 15:05:24 +0100
committerGitHub <noreply@github.com>2024-03-21 14:05:24 +0000
commit82979588f4d8699097451ebb70c56a4bdd090c52 (patch)
treec8d6e182410057e7602d96b5dd4e9bd6b21b45f0 /web_src/js
parent62f8174aa2fae1481c7e17a6afcb731a5b178cd0 (diff)
downloadgitea-82979588f4d8699097451ebb70c56a4bdd090c52.tar.gz
gitea-82979588f4d8699097451ebb70c56a4bdd090c52.zip
Switch to happy-dom for testing (#29948)
Use `happy-dom` again in vitest as it has caught up recently to `jsdom` in terms of features and it is a much more lightweight solution. I encountered [one bug](https://github.com/capricorn86/happy-dom/issues/1342), but it's an easy workaround until fixed. I regenerated the lockfile to get rid of the transitive dependencies so that's why the diff also has some upgrades in it. In total, this change removes 39 npm dependencies.
Diffstat (limited to 'web_src/js')
-rw-r--r--web_src/js/svg.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/svg.js b/web_src/js/svg.js
index 471b5136bd..6ad06f599d 100644
--- a/web_src/js/svg.js
+++ b/web_src/js/svg.js
@@ -205,7 +205,7 @@ export const SvgIcon = {
// make the <SvgIcon class="foo" class-name="bar"> classes work together
const classes = [];
- for (const cls of svgOuter.classList) {
+ for (const cls of svgOuter.classList.values()) {
classes.push(cls);
}
// TODO: drop the `className/class-name` prop in the future, only use "class" prop