mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 21:41:36 +00:00
test: remove redundant provider-plus-date model-name case
This commit is contained in:
@@ -799,10 +799,6 @@ describe("extractShortModelName", () => {
|
|||||||
expect(extractShortModelName("claude-opus-4-5")).toBe("claude-opus-4-5");
|
expect(extractShortModelName("claude-opus-4-5")).toBe("claude-opus-4-5");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("handles full path with provider and date suffix", () => {
|
|
||||||
expect(extractShortModelName("anthropic/claude-opus-4-5-20251101")).toBe("claude-opus-4-5");
|
|
||||||
});
|
|
||||||
|
|
||||||
it("preserves version numbers that look like dates but are not", () => {
|
it("preserves version numbers that look like dates but are not", () => {
|
||||||
// Date suffix must be exactly 8 digits at the end
|
// Date suffix must be exactly 8 digits at the end
|
||||||
expect(extractShortModelName("model-v1234567")).toBe("model-v1234567");
|
expect(extractShortModelName("model-v1234567")).toBe("model-v1234567");
|
||||||
|
|||||||
Reference in New Issue
Block a user