refactor: use spread metrics for content data fields
This commit is contained in:
@@ -196,8 +196,8 @@ describe("csv-exporter", () => {
|
||||
authorId: "123",
|
||||
authorName: "Alice",
|
||||
spreadMetrics: {
|
||||
"个人视频_近30天_完播率": "28.24%",
|
||||
"只看指派_排除营销流量_星图视频_近30天_互动率": "4.02%"
|
||||
"内容数据-个人视频-近30天-完播率": "28.24%",
|
||||
"内容数据-只看指派-排除营销流量-星图视频-近30天-互动率": "4.02%"
|
||||
},
|
||||
status: "success"
|
||||
} satisfies MarketRecord
|
||||
@@ -207,12 +207,12 @@ describe("csv-exporter", () => {
|
||||
expect(headerLine).toContain(
|
||||
[
|
||||
"秒思api-cp_search",
|
||||
"个人视频_近30天_完播率",
|
||||
"个人视频_近30天_播放量中位数"
|
||||
"内容数据-个人视频-近30天-完播率",
|
||||
"内容数据-个人视频-近30天-播放量中位数"
|
||||
].join(",")
|
||||
);
|
||||
expect(headerLine).toContain(
|
||||
"只看指派_排除营销流量_星图视频_近30天_互动率"
|
||||
"内容数据-只看指派-排除营销流量-星图视频-近30天-互动率"
|
||||
);
|
||||
expect(rowLine).toContain("28.24%");
|
||||
expect(rowLine).toContain("4.02%");
|
||||
|
||||
Reference in New Issue
Block a user