test: tighten package tag prefix matching

This commit is contained in:
Peter Steinberger
2026-03-14 00:58:12 +00:00
parent 4d523f4e19
commit 8dab4a48c4

View File

@@ -23,5 +23,6 @@ describe("normalizePackageTagInput", () => {
it("returns trimmed raw values when no package prefix matches", () => {
expect(normalizePackageTagInput(" latest ", packageNames)).toBe("latest");
expect(normalizePackageTagInput("@other/plugin@beta", packageNames)).toBe("@other/plugin@beta");
expect(normalizePackageTagInput("openclawer@beta", packageNames)).toBe("openclawer@beta");
});
});