fix: format business ability estimates

This commit is contained in:
2026-05-18 18:40:34 +08:00
parent 249e6a5971
commit 39c4191a95
3 changed files with 53 additions and 13 deletions
+5 -5
View File
@@ -39,15 +39,15 @@ describe("audience-profile-csv", () => {
estimates: {
oneToTwenty: {
expectedCpe: "2.1",
expectedCpm: "120",
expectedCpm: "120.0",
expectedPlay: "250w",
hotRate: "100%"
},
twentyToSixty: {
expectedCpe: "3.7",
expectedCpm: "212",
expectedCpm: "212.0",
expectedPlay: "250w",
hotRate: "100%"
hotRate: "缺失"
}
},
status: "success",
@@ -109,8 +109,8 @@ describe("audience-profile-csv", () => {
expect(rowLine).toContain("60%");
expect(readCsvValue(csv, "商业能力-个人视频-播放量中位数")).toBe("3738.4w");
expect(readCsvValue(csv, "商业能力-星图视频-平均转发")).toBe("68.4w");
expect(readCsvValue(csv, "商业能力-1-20s视频-预期CPM")).toBe("120");
expect(readCsvValue(csv, "商业能力-20-60s视频-爆文率")).toBe("100%");
expect(readCsvValue(csv, "商业能力-1-20s视频-预期CPM")).toBe("120.0");
expect(readCsvValue(csv, "商业能力-20-60s视频-爆文率")).toBe("缺失");
});
test("leaves distribution cells empty when profile loading fails", () => {