chore(tsgo/format): fix CI errors

This commit is contained in:
Gustavo Madeira Santana
2026-02-21 17:51:56 -05:00
parent 6ac89757ba
commit 0e1aa77928
15 changed files with 133 additions and 59 deletions

View File

@@ -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();
}
}

View File

@@ -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({