From ba07ec6313f17f2df982f46834c2bc99b8668434 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Mon, 22 Jun 2026 21:26:08 -0400 Subject: [PATCH] fix(tests): update stale $lib/api/api import in unit test Missed by the earlier refactor sed (which only ran over src/); the mock path in create_event_badge.spec.ts still pointed to the old $lib/api/api. Co-Authored-By: Claude Sonnet 4.6 --- tests/unit/create_event_badge.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/create_event_badge.spec.ts b/tests/unit/create_event_badge.spec.ts index 8d6cd87f..4d1ecb52 100644 --- a/tests/unit/create_event_badge.spec.ts +++ b/tests/unit/create_event_badge.spec.ts @@ -7,7 +7,7 @@ import { describe, it, expect, vi, beforeEach } from 'vitest'; // Mock the api module used by the ae_events file const mockCreateNested = vi.fn(); -vi.mock('$lib/api/api', () => ({ api: { create_nested_obj: mockCreateNested } })); +vi.mock('$lib/ae_api/api', () => ({ api: { create_nested_obj: mockCreateNested } })); // Avoid touching IndexedDB caching in this unit test vi.mock('$lib/ae_core/core__idb_dexie', () => ({ db_save_ae_obj_li__ae_obj: vi.fn() }));