mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 05:20:42 +00:00
test: fix backup callback narrowing
This commit is contained in:
@@ -215,8 +215,10 @@ describe("backup commands", () => {
|
||||
if (capturedManifest === null || capturedOnWriteEntry === null) {
|
||||
throw new Error("Expected backup manifest and archive entry callback");
|
||||
}
|
||||
const manifest = capturedManifest;
|
||||
const onWriteEntry = capturedOnWriteEntry;
|
||||
const manifest = capturedManifest as unknown as {
|
||||
assets: Array<{ kind: string; archivePath: string }>;
|
||||
};
|
||||
const onWriteEntry = capturedOnWriteEntry as unknown as (entry: { path: string }) => void;
|
||||
expect(manifest.assets).toEqual(
|
||||
expect.arrayContaining([
|
||||
expect.objectContaining({ kind: "state" }),
|
||||
|
||||
Reference in New Issue
Block a user