Skip to content
Python

fix(memhub): pass the lint gate

alvinfei4e5a44b8dcc4
diff --git a/memhub/apps/cli/src/cli.test.ts b/memhub/apps/cli/src/cli.test.ts
index 72f699f..e4d6f5e 100644
--- a/memhub/apps/cli/src/cli.test.ts
+++ b/memhub/apps/cli/src/cli.test.ts
@@ -833,13 +833,17 @@ describe("public One Memory CLI", () => {
command: "upgrade",
code: "restart failed",
});
- expect(JSON.parse(streams.stderr())).toMatchObject({ rolled_back: false });
+ expect(JSON.parse(streams.stderr())).toMatchObject({
+ rolled_back: false,
+ });
// Product rule: the previous Runtime may predate the SDK migration gate,
// so it is never restored after the migration was handed the home.
expect(runtimeMocks.rollbackLocalInstall).not.toHaveBeenCalled();
expect(aliasMocks.rollbackManagedCliLink).not.toHaveBeenCalled();
expect(runtimeMocks.restartUserService).toHaveBeenCalledOnce();
- expect((runtimeMocks.restartUserService.mock.calls as unknown[][])[0]?.[0]).toMatchObject({
+ expect(
+ (runtimeMocks.restartUserService.mock.calls as unknown[][])[0]?.[0],
+ ).toMatchObject({
dataDir: "/tmp/custom data",
installRoot: "/tmp/install/current",
});
@@ -987,7 +991,9 @@ describe("public One Memory CLI", () => {
expect(runtimeMocks.rollbackLocalInstall).not.toHaveBeenCalled();
expect(aliasMocks.rollbackManagedCliLink).not.toHaveBeenCalled();
expect(runtimeMocks.restartUserService).toHaveBeenCalledOnce();
- expect((runtimeMocks.restartUserService.mock.calls as unknown[][])[0]?.[0]).toMatchObject({
+ expect(
+ (runtimeMocks.restartUserService.mock.calls as unknown[][])[0]?.[0],
+ ).toMatchObject({
installRoot: "/tmp/install/current",
});
});
diff --git a/memhub/apps/web/src/MemoryMap.tsx b/memhub/apps/web/src/MemoryMap.tsx
index 16b9715..04caf1e 100644
--- a/memhub/apps/web/src/MemoryMap.tsx
+++ b/memhub/apps/web/src/MemoryMap.tsx
@@ -644,6 +644,7 @@ export function MemoryMap(props: Props) {
))}
</fieldset>
)}
+ {/* biome-ignore lint/a11y/useSemanticElements: the search form is the flex row .map-search styles; a <search> wrapper would add a box around it. */}
<form
className="map-search"
role="search"