fix(memhub): pass the lint gate
Format cli.test.ts, and mark the map's search form role as intentional: biome's useSemanticElements also fails main (#179 merge), and a <search> wrapper would add a box around the flex row .map-search styles. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
bf36ba765b
commit
4e5a44b8dc
2 files changed
+10
-3
No files matched your search
@@ -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",
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user