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:
jesus 2026-10-11 01:16:17 +00:00
parent 4bcf77e54e
commit e4b7d343c3

View file

@ -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();