test: add more tests for AskUser (#17720)

This commit is contained in:
Jack Wotherspoon
2026-01-28 11:57:16 -05:00
committed by GitHub
parent 65accca296
commit 25ae1a1b54
4 changed files with 198 additions and 51 deletions

View File

@@ -24,9 +24,8 @@ interface AskUserActionsContextValue {
cancel: () => void;
}
const AskUserActionsContext = createContext<AskUserActionsContextValue | null>(
null,
);
export const AskUserActionsContext =
createContext<AskUserActionsContextValue | null>(null);
export const useAskUserActions = () => {
const context = useContext(AskUserActionsContext);