fix(detail): normalize review store arch

This commit is contained in:
2026-05-18 23:14:10 +08:00
parent e607e4991b
commit 75df598bc0
2 changed files with 11 additions and 1 deletions
+9
View File
@@ -35,6 +35,15 @@ describe("appIdentity", () => {
expect(buildReviewAppKey(app, "amd64")).toBe("apm:amd64-apm:office:wps");
});
it("builds review keys from already-qualified client arch values", () => {
expect(buildReviewAppKey({ ...app, origin: "spark" }, "amd64-store")).toBe(
"spark:amd64-store:office:wps",
);
expect(buildReviewAppKey(app, "amd64-apm")).toBe(
"apm:amd64-apm:office:wps",
);
});
it("parses package arch and review tags", () => {
expect(parsePackageArch(app.filename)).toBe("amd64");
expect(