From be25152eea8619592668d8f4c7912290c4a6b8c5 Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Sun, 25 Jan 2026 23:35:03 -0800 Subject: [PATCH] chore: format --- src/lib/notifications/notifications.test.ts | 6 +----- src/lib/stores/conversations.test.ts | 8 ++------ src/lib/stores/quickActions.test.ts | 3 +-- src/lib/stores/snippets.test.ts | 5 ++--- 4 files changed, 6 insertions(+), 16 deletions(-) diff --git a/src/lib/notifications/notifications.test.ts b/src/lib/notifications/notifications.test.ts index 29a91b4..2763266 100644 --- a/src/lib/notifications/notifications.test.ts +++ b/src/lib/notifications/notifications.test.ts @@ -1,9 +1,5 @@ import { describe, it, expect, vi, beforeEach, afterEach } from "vitest"; -import { - NotificationType, - NOTIFICATION_SOUNDS, - type NotificationSound, -} from "./types"; +import { NotificationType, NOTIFICATION_SOUNDS, type NotificationSound } from "./types"; // Mock HTMLAudioElement for soundPlayer tests class MockAudioElement { diff --git a/src/lib/stores/conversations.test.ts b/src/lib/stores/conversations.test.ts index f5859b8..7e4852f 100644 --- a/src/lib/stores/conversations.test.ts +++ b/src/lib/stores/conversations.test.ts @@ -270,9 +270,7 @@ describe("conversation history formatting", () => { { type: "user" as const, content: "How are you?" }, ]; - const relevantLines = lines.filter( - (line) => line.type === "user" || line.type === "assistant" - ); + const relevantLines = lines.filter((line) => line.type === "user" || line.type === "assistant"); const history = relevantLines .map((line) => { @@ -289,9 +287,7 @@ describe("conversation history formatting", () => { it("returns empty string for no messages", () => { const lines: Array<{ type: string; content: string }> = []; - const relevantLines = lines.filter( - (line) => line.type === "user" || line.type === "assistant" - ); + const relevantLines = lines.filter((line) => line.type === "user" || line.type === "assistant"); expect(relevantLines.length).toBe(0); const history = relevantLines.length === 0 ? "" : "has content"; diff --git a/src/lib/stores/quickActions.test.ts b/src/lib/stores/quickActions.test.ts index 5f8eca2..0e6782e 100644 --- a/src/lib/stores/quickActions.test.ts +++ b/src/lib/stores/quickActions.test.ts @@ -264,8 +264,7 @@ describe("quickActionsStore", () => { describe("quick action ID generation", () => { it("generates unique custom action IDs", () => { - const generateId = () => - `custom-${Date.now()}-${Math.random().toString(36).substring(2, 9)}`; + const generateId = () => `custom-${Date.now()}-${Math.random().toString(36).substring(2, 9)}`; const id1 = generateId(); const id2 = generateId(); diff --git a/src/lib/stores/snippets.test.ts b/src/lib/stores/snippets.test.ts index 660a67e..0f9b082 100644 --- a/src/lib/stores/snippets.test.ts +++ b/src/lib/stores/snippets.test.ts @@ -289,8 +289,7 @@ describe("snippetsStore", () => { describe("snippet ID generation", () => { it("generates unique custom snippet IDs", () => { - const generateId = () => - `custom-${Date.now()}-${Math.random().toString(36).substring(2, 9)}`; + const generateId = () => `custom-${Date.now()}-${Math.random().toString(36).substring(2, 9)}`; const id1 = generateId(); const id2 = generateId(); @@ -335,7 +334,7 @@ git push`, it("supports content with special characters", () => { const snippet = { - content: 'echo "Hello, World!" && echo \'Single quotes\'', + content: "echo \"Hello, World!\" && echo 'Single quotes'", }; expect(snippet.content).toContain('"');