mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-25 17:12:44 +08:00
[autofix.ci] apply automated fixes
This commit is contained in:
@ -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;
|
||||
|
||||
@ -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",
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user