[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2026-04-21 14:39:18 +00:00
committed by GitHub
parent 8fa6ac7a3c
commit 45d38d858f
2 changed files with 15 additions and 3 deletions

View File

@ -81,7 +81,12 @@ jest.mock("@/stores/alertStore", () => ({
let memories: MemoryInfo[] = [
makeMemoryInfo({ id: "m1", name: "First", description: "alpha" }),
makeMemoryInfo({ id: "m2", name: "Second", description: "beta", is_active: false }),
makeMemoryInfo({
id: "m2",
name: "Second",
description: "beta",
is_active: false,
}),
];
// Override to simulate multiple pages; undefined means use the default single-page shape.
@ -205,7 +210,12 @@ describe("useMemoriesData", () => {
memoriesPages = undefined;
memories = [
makeMemoryInfo({ id: "m1", name: "First", description: "alpha" }),
makeMemoryInfo({ id: "m2", name: "Second", description: "beta", is_active: false }),
makeMemoryInfo({
id: "m2",
name: "Second",
description: "beta",
is_active: false,
}),
];
memoryQueryData = makeMemoryInfo({ id: "m1", name: "First" });
memoryQueryIsLoading = false;

View File

@ -2,7 +2,9 @@ import { extractApiErrorMessages } from "../apiError";
describe("extractApiErrorMessages", () => {
it("returns a default message for non-object errors", () => {
expect(extractApiErrorMessages(null)).toEqual(["An unknown error occurred"]);
expect(extractApiErrorMessages(null)).toEqual([
"An unknown error occurred",
]);
expect(extractApiErrorMessages(undefined)).toEqual([
"An unknown error occurred",
]);