mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 01:28:27 +00:00
test: remove duplicate positive template-variable detection case
This commit is contained in:
@@ -806,12 +806,6 @@ describe("hasTemplateVariables", () => {
|
|||||||
expect(hasTemplateVariables("")).toBe(false);
|
expect(hasTemplateVariables("")).toBe(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("returns true when template variables present", () => {
|
|
||||||
expect(hasTemplateVariables("[{model}]")).toBe(true);
|
|
||||||
expect(hasTemplateVariables("{provider}")).toBe(true);
|
|
||||||
expect(hasTemplateVariables("prefix {thinkingLevel} suffix")).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