mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 23:56:07 +00:00
test: clarify memory wiki assertions
This commit is contained in:
@@ -3628,13 +3628,11 @@ describe("active-memory plugin", () => {
|
||||
),
|
||||
);
|
||||
expect(
|
||||
vi
|
||||
.mocked(api.logger.info)
|
||||
.mock.calls.some((call: unknown[]) =>
|
||||
String(call[0]).includes(`transcript=${expectedDir}${path.sep}`),
|
||||
),
|
||||
).toBe(true);
|
||||
expect(rmSpy.mock.calls.some(([target]) => String(target).startsWith(expectedDir))).toBe(false);
|
||||
vi.mocked(api.logger.info).mock.calls.map((call: unknown[]) => String(call[0])),
|
||||
).toContainEqual(expect.stringContaining(`transcript=${expectedDir}${path.sep}`));
|
||||
expect(rmSpy.mock.calls.filter(([target]) => String(target).startsWith(expectedDir))).toEqual(
|
||||
[],
|
||||
);
|
||||
});
|
||||
|
||||
it("falls back to the default transcript directory when transcriptDir is unsafe", async () => {
|
||||
|
||||
Reference in New Issue
Block a user