mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-03 15:00:20 +00:00
chore(tsgo/format): fix CI errors
This commit is contained in:
@@ -449,7 +449,7 @@ describe("parseLineDirectives", () => {
|
||||
if (testCase.expectFooter) {
|
||||
expect(flexMessage?.contents?.footer?.contents?.length, testCase.name).toBeGreaterThan(0);
|
||||
}
|
||||
if (testCase.expectBodyContents) {
|
||||
if ("expectBodyContents" in testCase && testCase.expectBodyContents) {
|
||||
expect(flexMessage?.contents?.body?.contents, testCase.name).toBeDefined();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -626,7 +626,7 @@ describe("initSessionState reset triggers in WhatsApp groups", () => {
|
||||
});
|
||||
const cfg = makeCfg({
|
||||
storePath,
|
||||
allowFrom: testCase.allowFrom,
|
||||
allowFrom: [...testCase.allowFrom],
|
||||
});
|
||||
|
||||
const result = await initSessionState({
|
||||
|
||||
Reference in New Issue
Block a user