修复四项新版开单和恢复差异,核验三项已确认行为
This commit is contained in:
1 parent
fdaa6afad5
commit
c29ea45ec4
25 files changed
+617
-171
No files matched your search
@@ -109,11 +109,9 @@ async function recoverTeamTransfer(context, owner, path) {
|
||||
export async function teamTransfers(context, owner) {
|
||||
const feedback = {};
|
||||
for (const path of ['transfer', 'transfers']) feedback[path] = await recoverTeamTransfer(context, owner, path);
|
||||
if (context.version === 'old')
|
||||
assert.deepEqual(
|
||||
feedback,
|
||||
{
|
||||
transfer: {
|
||||
const singular =
|
||||
context.version === 'old'
|
||||
? {
|
||||
heading: '订单',
|
||||
toast: '订单不存在',
|
||||
orderReads: [
|
||||
@@ -122,11 +120,18 @@ export async function teamTransfers(context, owner) {
|
||||
['/change', 404],
|
||||
['/ownership', 404],
|
||||
],
|
||||
},
|
||||
transfers: { heading: '团队账目', toast: '实际转账已保存,待转金额已重新核对', orderReads: [] },
|
||||
},
|
||||
'历史团队转账两个兼容地址的恢复反馈',
|
||||
);
|
||||
}
|
||||
: { heading: '订单', toast: '原操作已确认', orderReads: [] };
|
||||
assert.deepEqual(feedback.transfer, singular, '旧单数地址应显示本版本确认的反馈');
|
||||
assert.deepEqual(
|
||||
feedback.transfers,
|
||||
{
|
||||
heading: '团队账目',
|
||||
toast: '实际转账已保存,待转金额已重新核对',
|
||||
orderReads: [],
|
||||
},
|
||||
'复数地址恢复后应返回团队账目并确认实际转账',
|
||||
);
|
||||
return { 历史团队转账反馈: feedback };
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user