mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 11:28:38 +00:00
test: tighten package tag prefix matching
This commit is contained in:
@@ -23,5 +23,6 @@ describe("normalizePackageTagInput", () => {
|
|||||||
it("returns trimmed raw values when no package prefix matches", () => {
|
it("returns trimmed raw values when no package prefix matches", () => {
|
||||||
expect(normalizePackageTagInput(" latest ", packageNames)).toBe("latest");
|
expect(normalizePackageTagInput(" latest ", packageNames)).toBe("latest");
|
||||||
expect(normalizePackageTagInput("@other/plugin@beta", packageNames)).toBe("@other/plugin@beta");
|
expect(normalizePackageTagInput("@other/plugin@beta", packageNames)).toBe("@other/plugin@beta");
|
||||||
|
expect(normalizePackageTagInput("openclawer@beta", packageNames)).toBe("openclawer@beta");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user