From 46da5d5194261eb826bc2fda11650a7b86ff70d0 Mon Sep 17 00:00:00 2001
From: Daniel Wurzer
Date: Wed, 12 Aug 2026 08:57:04 +0200
Subject: [PATCH 01/16] test(cards): changed to vitest and fixed removing
eventhandlers and initial state of reveal card
---
components/appbar/appbar.test.mjs | 4 +-
.../button/{fabSpec.js => ___fabSpec.js} | 0
.../button/___taptargetSpec.js | 0
.../card/{cardsSpec.js => cards.test.ts} | 121 +-
components/card/cards.ts | 5 +-
jasmine.json | 18 -
package-lock.json | 1262 ++---------------
package.json | 3 -
spec/helper.js | 338 -----
{spec => src}/scrollspySpec.js | 0
src/waves.js | 11 -
11 files changed, 171 insertions(+), 1591 deletions(-)
rename components/button/{fabSpec.js => ___fabSpec.js} (100%)
rename spec/taptargetSpec.js => components/button/___taptargetSpec.js (100%)
rename components/card/{cardsSpec.js => cards.test.ts} (69%)
delete mode 100644 jasmine.json
delete mode 100644 spec/helper.js
rename {spec => src}/scrollspySpec.js (100%)
diff --git a/components/appbar/appbar.test.mjs b/components/appbar/appbar.test.mjs
index 06fd8581b8..437ae055c0 100644
--- a/components/appbar/appbar.test.mjs
+++ b/components/appbar/appbar.test.mjs
@@ -1,8 +1,8 @@
-import { describe, expect, test } from 'vitest';
+import { describe, expect, it } from 'vitest';
import { AppBar } from './appbar.mjs';
describe('appBar', () => {
- test('create html', () => {
+ it('should create the html', () => {
const appBar = new AppBar();
expect(appBar.toHTML()).toContain('
-
- ${super.toHTML()}
-
- ${this.#scriptUrls.map((url) => ``).join('\n')}
- ${this.#scripts.map((s) => ``).join('\n')}
-
+
+ ${super.toHTML()}
+
+ ${this.#scriptUrls.map((url) => ``).join('\n')}
+ ${this.#scripts.map((s) => ``).join('\n')}
+ `;
}
}
diff --git a/examples/html/blog.html b/examples/html/blog.html
index 051d5f42e3..b4873c1f47 100644
--- a/examples/html/blog.html
+++ b/examples/html/blog.html
@@ -1,6 +1,7 @@