mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
Merge pull request #27537 from BerriAI/litellm_/hardcore-goldstine-baabae
fix(ui-tests): add Typography to antd mock in create_key_button test
This commit is contained in:
commit
96f23c2e6f
1 changed files with 10 additions and 0 deletions
|
|
@ -155,6 +155,15 @@ vi.mock("antd", () => {
|
|||
const Button = ({ children, htmlType, ...props }: { children?: any; htmlType?: string }) =>
|
||||
React.createElement("button", { ...props, type: htmlType ?? props.type }, children);
|
||||
|
||||
const Typography = ({ children, ...props }: { children?: any }) =>
|
||||
React.createElement("div", props, children);
|
||||
Typography.Text = ({ children, ...props }: { children?: any }) =>
|
||||
React.createElement("span", props, children);
|
||||
Typography.Paragraph = ({ children, ...props }: { children?: any }) =>
|
||||
React.createElement("p", props, children);
|
||||
Typography.Title = ({ children, ...props }: { children?: any }) =>
|
||||
React.createElement("h1", props, children);
|
||||
|
||||
return {
|
||||
Button,
|
||||
Form,
|
||||
|
|
@ -171,6 +180,7 @@ vi.mock("antd", () => {
|
|||
Switch,
|
||||
Tag,
|
||||
Tooltip,
|
||||
Typography,
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue