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 <noreply@anthropic.com>
This commit is contained in:
Scott Idem
2026-06-22 21:26:08 -04:00
parent 4d6dd980c2
commit ba07ec6313

View File

@@ -7,7 +7,7 @@ import { describe, it, expect, vi, beforeEach } from 'vitest';
// Mock the api module used by the ae_events file // Mock the api module used by the ae_events file
const mockCreateNested = vi.fn(); 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 // 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() })); vi.mock('$lib/ae_core/core__idb_dexie', () => ({ db_save_ae_obj_li__ae_obj: vi.fn() }));