mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 22:41:36 +00:00
chore(tsgo/format): fix CI errors
This commit is contained in:
@@ -237,11 +237,15 @@ describe("edge cases", () => {
|
||||
] as const;
|
||||
for (const testCase of cases) {
|
||||
const result = markdownToTelegramHtml(testCase.input);
|
||||
for (const expected of testCase.contains ?? []) {
|
||||
expect(result, testCase.name).toContain(expected);
|
||||
if ("contains" in testCase) {
|
||||
for (const expected of testCase.contains) {
|
||||
expect(result, testCase.name).toContain(expected);
|
||||
}
|
||||
}
|
||||
for (const unexpected of testCase.notContains ?? []) {
|
||||
expect(result, testCase.name).not.toContain(unexpected);
|
||||
if ("notContains" in testCase) {
|
||||
for (const unexpected of testCase.notContains) {
|
||||
expect(result, testCase.name).not.toContain(unexpected);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -297,8 +301,10 @@ describe("edge cases", () => {
|
||||
if ("expectedExact" in testCase) {
|
||||
expect(result, testCase.name).toBe(testCase.expectedExact);
|
||||
}
|
||||
for (const expected of testCase.contains ?? []) {
|
||||
expect(result, testCase.name).toContain(expected);
|
||||
if ("contains" in testCase) {
|
||||
for (const expected of testCase.contains) {
|
||||
expect(result, testCase.name).toContain(expected);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user