Skip to content

Commit 54a8903

Browse files
[autofix.ci] apply automated fixes
1 parent 0b74b7a commit 54a8903

12 files changed

Lines changed: 65 additions & 22 deletions

File tree

src/frontend/src/components/common/paginatorComponent/__tests__/PaginatorComponent.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ jest.mock("../../../ui/select", () => {
4141
value: string;
4242
}) => <option value={value}>{children}</option>,
4343
SelectTrigger: ({ children, ...rest }: any) => (
44-
<div data-testid="page-select-trigger" aria-label={rest["aria-label"]}>{children}</div>
44+
<div data-testid="page-select-trigger" aria-label={rest["aria-label"]}>
45+
{children}
46+
</div>
4547
),
4648
SelectValue: () => null,
4749
};

src/frontend/src/components/core/appHeaderComponent/__tests__/app-header-a11y.test.tsx

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,22 @@ jest.mock("react-i18next", () => ({
88

99
jest.mock("@/components/common/genericIconComponent", () => ({
1010
__esModule: true,
11-
default: ({ name }: { name: string }) => <span data-testid={`icon-${name}`}>{name}</span>,
11+
default: ({ name }: { name: string }) => (
12+
<span data-testid={`icon-${name}`}>{name}</span>
13+
),
1214
}));
1315

1416
jest.mock("@/components/ui/button", () => ({
15-
Button: ({ children, "aria-label": ariaLabel, "data-testid": testId, unstyled, ...props }: any) => (
16-
<button aria-label={ariaLabel} data-testid={testId} {...props}>{children}</button>
17+
Button: ({
18+
children,
19+
"aria-label": ariaLabel,
20+
"data-testid": testId,
21+
unstyled,
22+
...props
23+
}: any) => (
24+
<button aria-label={ariaLabel} data-testid={testId} {...props}>
25+
{children}
26+
</button>
1727
),
1828
}));
1929

@@ -66,10 +76,15 @@ jest.mock("@/customization/hooks/use-custom-theme", () => ({
6676

6777
jest.mock("@/stores/alertStore", () => ({
6878
__esModule: true,
69-
default: () => ({ notificationCenter: false, setNotificationCenter: jest.fn() }),
79+
default: () => ({
80+
notificationCenter: false,
81+
setNotificationCenter: jest.fn(),
82+
}),
7083
}));
7184

72-
jest.mock("./components/FlowMenu", () => ({ FlowMenu: () => null }), { virtual: true });
85+
jest.mock("./components/FlowMenu", () => ({ FlowMenu: () => null }), {
86+
virtual: true,
87+
});
7388
jest.mock("../components/FlowMenu", () => ({
7489
__esModule: true,
7590
default: () => null,

src/frontend/src/components/core/folderSidebarComponent/components/sideBarFolderButtons/components/__tests__/add-folder-button.test.tsx

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ jest.mock("react-i18next", () => ({
77

88
jest.mock("@/components/common/genericIconComponent", () => ({
99
__esModule: true,
10-
default: ({ name }: { name: string }) => <span data-testid={`icon-${name}`}>{name}</span>,
10+
default: ({ name }: { name: string }) => (
11+
<span data-testid={`icon-${name}`}>{name}</span>
12+
),
1113
}));
1214

1315
jest.mock("@/components/common/shadTooltipComponent", () => ({
@@ -16,8 +18,19 @@ jest.mock("@/components/common/shadTooltipComponent", () => ({
1618
}));
1719

1820
jest.mock("@/components/ui/button", () => ({
19-
Button: ({ children, "aria-label": ariaLabel, disabled, loading, ...props }: any) => (
20-
<button aria-label={ariaLabel} disabled={disabled} data-loading={loading} {...props}>
21+
Button: ({
22+
children,
23+
"aria-label": ariaLabel,
24+
disabled,
25+
loading,
26+
...props
27+
}: any) => (
28+
<button
29+
aria-label={ariaLabel}
30+
disabled={disabled}
31+
data-loading={loading}
32+
{...props}
33+
>
2134
{children}
2235
</button>
2336
),

src/frontend/src/components/core/folderSidebarComponent/components/sideBarFolderButtons/components/__tests__/upload-folder-button.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ jest.mock("react-i18next", () => ({
77

88
jest.mock("@/components/common/genericIconComponent", () => ({
99
__esModule: true,
10-
default: ({ name }: { name: string }) => <span data-testid={`icon-${name}`}>{name}</span>,
10+
default: ({ name }: { name: string }) => (
11+
<span data-testid={`icon-${name}`}>{name}</span>
12+
),
1113
}));
1214

1315
jest.mock("@/components/common/shadTooltipComponent", () => ({

src/frontend/src/locales/de.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2067,4 +2067,4 @@
20672067
"voiceAssistant.connected": "Verbunden",
20682068
"voiceAssistant.connectionError": "Verbindungsfehler",
20692069
"voiceAssistant.connectionFailed": "Verbindung fehlgeschlagen"
2070-
}
2070+
}

src/frontend/src/locales/es.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2067,4 +2067,4 @@
20672067
"voiceAssistant.connected": "Conectado",
20682068
"voiceAssistant.connectionError": "Error de conexión",
20692069
"voiceAssistant.connectionFailed": "La conexión ha fallado"
2070-
}
2070+
}

src/frontend/src/locales/fr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2067,4 +2067,4 @@
20672067
"voiceAssistant.connected": "Connecté",
20682068
"voiceAssistant.connectionError": "Erreur de connexion",
20692069
"voiceAssistant.connectionFailed": "Echec de la connexion"
2070-
}
2070+
}

src/frontend/src/locales/ja.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2067,4 +2067,4 @@
20672067
"voiceAssistant.connected": "接続済み",
20682068
"voiceAssistant.connectionError": "接続エラー",
20692069
"voiceAssistant.connectionFailed": "接続失敗"
2070-
}
2070+
}

src/frontend/src/locales/pt.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2067,4 +2067,4 @@
20672067
"voiceAssistant.connected": "Conectado",
20682068
"voiceAssistant.connectionError": "Erro de conexão",
20692069
"voiceAssistant.connectionFailed": "Conexão com falha"
2070-
}
2070+
}

src/frontend/src/locales/zh-Hans.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2067,4 +2067,4 @@
20672067
"voiceAssistant.connected": "已连接",
20682068
"voiceAssistant.connectionError": "连接错误",
20692069
"voiceAssistant.connectionFailed": "连接失败"
2070-
}
2070+
}

0 commit comments

Comments
 (0)