aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-12-11 04:31:27 +0900
committernsfisis <nsfisis@gmail.com>2025-12-11 04:31:27 +0900
commit5b8988c40c9247fd68eb5c493c7c7ce6d6996b59 (patch)
treed2176d9a85e5834e5cbf9b512c342c7737bb0781 /src
parentc30597712174bbe3c7a4bbd3f93eb9e016d770f1 (diff)
downloadkioku-5b8988c40c9247fd68eb5c493c7c7ce6d6996b59.tar.gz
kioku-5b8988c40c9247fd68eb5c493c7c7ce6d6996b59.tar.zst
kioku-5b8988c40c9247fd68eb5c493c7c7ce6d6996b59.zip
fix(test): update PWA icon tests to match reworked icon
The icon was changed in c305977 but tests weren't updated. Updated assertions to verify new gradient fills and 100x100 viewBox. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src')
-rw-r--r--src/client/pwa.test.ts14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/client/pwa.test.ts b/src/client/pwa.test.ts
index b19eb79..ba08321 100644
--- a/src/client/pwa.test.ts
+++ b/src/client/pwa.test.ts
@@ -142,15 +142,19 @@ describe("PWA Configuration", () => {
});
it("has proper viewBox for square icon", () => {
- expect(iconSvg).toContain('viewBox="0 0 512 512"');
+ expect(iconSvg).toContain('viewBox="0 0 100 100"');
});
- it("uses theme color", () => {
- expect(iconSvg).toContain('fill="#4CAF50"');
+ it("uses gradient fills for visual appeal", () => {
+ expect(iconSvg).toContain("<linearGradient");
+ expect(iconSvg).toContain('fill="url(#grad');
});
- it("contains K letter for Kioku branding", () => {
- expect(iconSvg).toContain(">K<");
+ it("contains flashcard and K shapes for Kioku branding", () => {
+ // Three stacked rectangles representing flashcards
+ expect(iconSvg).toContain("<rect");
+ // K letter path on the right
+ expect(iconSvg).toContain("<path");
});
});
});