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:
@@ -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() }));
|
||||
|
||||
Reference in New Issue
Block a user