Update test mocks for new serviceUrlBehavior setting
f58cfe9 (Open script service URLs in-app or external) added
serviceUrlBehavior to AppSettings and a new useDropdownMenuClose
export from dropdown-menu. The unit tests were not updated:
- use-settings.test.ts: expected settings objects missed the new
serviceUrlBehavior field.
- workspace-scripts-button.test.tsx: dropdown-menu mock missed
useDropdownMenuClose, breaking HostLinkRow render.
This commit is contained in:
@@ -107,6 +107,7 @@ vi.mock("@/components/ui/dropdown-menu", () => ({
|
||||
: children}
|
||||
</button>
|
||||
),
|
||||
useDropdownMenuClose: () => () => {},
|
||||
}));
|
||||
|
||||
vi.mock("lucide-react-native", () => {
|
||||
|
||||
Reference in New Issue
Block a user