mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 22:41:36 +00:00
test: remove duplicate multi-variable template check case
This commit is contained in:
@@ -817,10 +817,6 @@ describe("hasTemplateVariables", () => {
|
|||||||
expect(hasTemplateVariables("prefix {thinkingLevel} suffix")).toBe(true);
|
expect(hasTemplateVariables("prefix {thinkingLevel} suffix")).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("returns true for multiple variables", () => {
|
|
||||||
expect(hasTemplateVariables("[{model} | {provider}]")).toBe(true);
|
|
||||||
});
|
|
||||||
|
|
||||||
it("handles consecutive calls correctly (regex lastIndex reset)", () => {
|
it("handles consecutive calls correctly (regex lastIndex reset)", () => {
|
||||||
// First call
|
// First call
|
||||||
expect(hasTemplateVariables("[{model}]")).toBe(true);
|
expect(hasTemplateVariables("[{model}]")).toBe(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user