fix: refine market toolbar filters

This commit is contained in:
wxs
2026-07-09 21:33:58 +08:00
parent b4440e2ca3
commit 370cc0170b
4 changed files with 72 additions and 74 deletions
+18
View File
@@ -55,4 +55,22 @@ describe("batch-payload", () => {
})
).toThrow(/user/i);
});
test("throws when no creator records are available", () => {
expect(() =>
createBatchPayload({
authState: {
isAuthenticated: true,
resource: "https://talent-search.intelligrow.cn",
userInfo: {
name: "王少卿",
sub: "p7pdhhtde8kj"
}
},
batchName: "空结果批次",
createdAt: "2026-07-03T03:05:52.432Z",
records: []
})
).toThrow("当前没有可提交的达人");
});
});