mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-13 03:59:12 +00:00
fix(ui): remove inline object lint warning
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
4bcf77e54e
commit
e4b7d343c3
1 changed files with 8 additions and 8 deletions
|
|
@ -139,14 +139,14 @@ describe("ProjectKeysTable", () => {
|
|||
it("opens a focused row with Enter and labels an alias-less key with its ID", async () => {
|
||||
const user = userEvent.setup();
|
||||
push.mockClear();
|
||||
renderWithProviders(
|
||||
<ProjectKeysTable
|
||||
{...defaultProps}
|
||||
keys={[
|
||||
makeKey({ token: "tok-no-alias", token_id: "tid-no-alias", key_alias: null as any, user_id: "owner-1" }),
|
||||
]}
|
||||
/>,
|
||||
);
|
||||
const aliasLessKeyInput = {
|
||||
token: "tok-no-alias",
|
||||
token_id: "tid-no-alias",
|
||||
key_alias: null as any,
|
||||
user_id: "owner-1",
|
||||
};
|
||||
const aliasLessKey = makeKey(aliasLessKeyInput);
|
||||
renderWithProviders(<ProjectKeysTable {...defaultProps} keys={[aliasLessKey]} />);
|
||||
const row = screen.getByRole("row", { name: "Open key tid-no-alias" });
|
||||
row.focus();
|
||||
expect(row).toHaveFocus();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue