Drop the direct apply path the calendar no longer uses
Applying a plan by itself stopped being something the interface does once every edit began recomputing and saving in one call. The hook that posted straight to the apply endpoint had no caller left, nor did its request type or its fixture. The response decoder stays, since the sync response embeds the same object, and the two tests being deleted were the only ones checking how its collision and rejection fields are renamed — that coverage moved onto the sync test rather than leaving with the code it happened to live next to.
This commit is contained in:
Vendored
-13
@@ -21,7 +21,6 @@ import type { useOptimizationTips } from '@/hooks/useOptimizationTips'
|
||||
import type { useDayOverrides } from '@/hooks/useDayOverrides'
|
||||
import type { useLeaveWishes } from '@/hooks/useLeaveWishes'
|
||||
import type { usePlanProposal } from '@/hooks/usePlanProposal'
|
||||
import type { usePlanApply } from '@/hooks/usePlanApply'
|
||||
import type { usePlanSync } from '@/hooks/usePlanSync'
|
||||
import type { useVacationDays } from '@/hooks/useVacationDays'
|
||||
import type { useChildSettings } from '@/hooks/useChildSettings'
|
||||
@@ -198,18 +197,6 @@ export function makePlanProposalResult(
|
||||
}
|
||||
}
|
||||
|
||||
export function makePlanApplyResult(
|
||||
overrides: Partial<ReturnType<typeof usePlanApply>> = {},
|
||||
): ReturnType<typeof usePlanApply> {
|
||||
return {
|
||||
response: null,
|
||||
isLoading: false,
|
||||
error: null,
|
||||
apply: vi.fn(),
|
||||
...overrides,
|
||||
}
|
||||
}
|
||||
|
||||
export function makePlanSyncResult(
|
||||
overrides: Partial<ReturnType<typeof usePlanSync>> = {},
|
||||
): ReturnType<typeof usePlanSync> {
|
||||
|
||||
Reference in New Issue
Block a user