fix: hydrate id export metrics and remove new tier columns

This commit is contained in:
2026-05-18 19:50:14 +08:00
parent 38da39589f
commit 37f7e0b5e6
4 changed files with 114 additions and 11 deletions
+4 -1
View File
@@ -102,6 +102,9 @@ describe("audience-profile-csv", () => {
expect(headerLine).toContain("观众画像-31-40占比");
expect(headerLine).toContain("粉丝画像-一线城市占比");
expect(headerLine).toContain("铁粉画像-都市蓝领占比");
expect(headerLine).not.toContain("观众画像-新一线城市占比");
expect(headerLine).not.toContain("粉丝画像-新一线城市占比");
expect(headerLine).not.toContain("铁粉画像-新一线城市占比");
expect(headerLine).not.toContain("省份");
expect(headerLine).not.toContain("地域TOP");
expect(headerLine).not.toContain("兴趣TOP");
@@ -183,10 +186,10 @@ describe("audience-profile-csv", () => {
expect(readCsvValue(csv, "铁粉画像-41-50占比")).toBe("0%");
expect(readCsvValue(csv, "铁粉画像-50+占比")).toBe("0%");
expect(readCsvValue(csv, "铁粉画像-新一线城市占比")).toBe("0%");
expect(readCsvValue(csv, "铁粉画像-五线城市占比")).toBe("0%");
expect(readCsvValue(csv, "铁粉画像-都市银发占比")).toBe("0%");
expect(readCsvValue(csv, "铁粉画像-Z世代占比")).toBe("0%");
expect(csv.split("\n")[0]).not.toContain("新一线城市占比");
});
});