feat: 添加邮箱字段到贡献请求体,并更新相关测试用例

This commit is contained in:
QLHazyCoder
2026-04-22 21:52:04 +08:00
parent 7bb51185ae
commit 491d309a6f
2 changed files with 2 additions and 0 deletions
@@ -423,6 +423,7 @@ test('contribution oauth manager starts session, opens auth url, submits callbac
assert.match(fetchCalls[0].url, /\/start$/);
assert.match(String(fetchCalls[0].options.body || ''), /"nickname":""/);
assert.match(String(fetchCalls[0].options.body || ''), /"qq":""/);
assert.match(String(fetchCalls[0].options.body || ''), /"email":"user@example\.com"/);
assert.match(fetchCalls[1].url, /\/status\?/);
const callbackState = await manager.handleCapturedCallback(