fix(qqbot): add curly braces for eslint(curly) compliance

This commit is contained in:
openperf
2026-06-04 11:11:35 +08:00
parent 91609905af
commit 17cf140183

View File

@@ -7,7 +7,9 @@ describe("qqbot outbound sanitizeText", () => {
it("strips reasoning/thinking tags before delivery", () => {
const sanitize = qqbotPlugin.outbound?.sanitizeText;
expect(sanitize).toBeDefined();
if (!sanitize) return;
if (!sanitize) {
return;
}
const input1 = "<thinking>internal reasoning</thinking>final answer";
expect(sanitize({ text: input1, payload: { text: input1 } })).toBe("final answer");