mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-24 12:44:18 +08:00
fix: update tests for InstalledSkill new fields and missing hook mocks
- Add content_hash and updated_at fields to 4 InstalledSkill literals in skill_sync.rs - Add useCheckSkillUpdates and useUpdateSkill to UnifiedSkillsPanel test mock - Suppress unused import warning in auto_launch.rs test module
This commit is contained in:
@@ -64,6 +64,15 @@ vi.mock("@/hooks/useSkills", () => ({
|
||||
useInstallSkillsFromZip: () => ({
|
||||
mutateAsync: installFromZipMock,
|
||||
}),
|
||||
useCheckSkillUpdates: () => ({
|
||||
data: [],
|
||||
refetch: vi.fn(),
|
||||
isFetching: false,
|
||||
}),
|
||||
useUpdateSkill: () => ({
|
||||
mutateAsync: vi.fn(),
|
||||
isPending: false,
|
||||
}),
|
||||
}));
|
||||
|
||||
describe("UnifiedSkillsPanel", () => {
|
||||
|
||||
Reference in New Issue
Block a user