mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-03 03:03:24 -04:00
fix: normalize xhigh aliases and docs sync (#9976)
This commit is contained in:
@@ -11,8 +11,23 @@ describe("normalizeThinkLevel", () => {
|
||||
expect(normalizeThinkLevel("mid")).toBe("medium");
|
||||
});
|
||||
|
||||
it("accepts xhigh", () => {
|
||||
it("accepts xhigh aliases", () => {
|
||||
expect(normalizeThinkLevel("xhigh")).toBe("xhigh");
|
||||
expect(normalizeThinkLevel("x-high")).toBe("xhigh");
|
||||
expect(normalizeThinkLevel("x_high")).toBe("xhigh");
|
||||
expect(normalizeThinkLevel("x high")).toBe("xhigh");
|
||||
});
|
||||
|
||||
it("accepts extra-high aliases as xhigh", () => {
|
||||
expect(normalizeThinkLevel("extra-high")).toBe("xhigh");
|
||||
expect(normalizeThinkLevel("extra high")).toBe("xhigh");
|
||||
expect(normalizeThinkLevel("extra_high")).toBe("xhigh");
|
||||
expect(normalizeThinkLevel(" extra high ")).toBe("xhigh");
|
||||
});
|
||||
|
||||
it("does not over-match nearby xhigh words", () => {
|
||||
expect(normalizeThinkLevel("extra-highest")).toBeUndefined();
|
||||
expect(normalizeThinkLevel("xhigher")).toBeUndefined();
|
||||
});
|
||||
|
||||
it("accepts extra-high aliases as xhigh", () => {
|
||||
|
||||
Reference in New Issue
Block a user