This commit is contained in:
@@ -28,7 +28,13 @@ async function run() {
|
||||
await authApi.logout()
|
||||
await employeesApi.reviewSummary()
|
||||
await employeesApi.reviewApplications()
|
||||
await employeesApi.approveApplication(12)
|
||||
await employeesApi.unboundArtists(12)
|
||||
await employeesApi.preAssociateApplication(14, 22)
|
||||
await employeesApi.approveApplication(12, {
|
||||
targetArtistUserId: 22,
|
||||
useApplicantNickname: true,
|
||||
useApplicantAvatar: false
|
||||
})
|
||||
await employeesApi.rejectApplication(12, '资料不完整')
|
||||
|
||||
assert.deepStrictEqual(requests.map(item => [item.method || 'GET', item.url, item.data]), [
|
||||
@@ -39,7 +45,13 @@ async function run() {
|
||||
['POST', 'http://127.0.0.1:80/api/user/logout', undefined],
|
||||
['GET', 'http://127.0.0.1:80/api/user/workbench/registration/summary', undefined],
|
||||
['GET', 'http://127.0.0.1:80/api/user/workbench/registration/list', undefined],
|
||||
['POST', 'http://127.0.0.1:80/api/user/workbench/registration/12/approve', undefined],
|
||||
['GET', 'http://127.0.0.1:80/api/user/workbench/registration/12/unbound-artists', undefined],
|
||||
['POST', 'http://127.0.0.1:80/api/user/workbench/registration/14/pre-associate', { targetArtistUserId: 22 }],
|
||||
['POST', 'http://127.0.0.1:80/api/user/workbench/registration/12/approve', {
|
||||
targetArtistUserId: 22,
|
||||
useApplicantNickname: true,
|
||||
useApplicantAvatar: false
|
||||
}],
|
||||
['POST', 'http://127.0.0.1:80/api/user/workbench/registration/12/reject', { reason: '资料不完整' }]
|
||||
])
|
||||
assert(requests.every(item => !item.url.includes('/api/admin/')))
|
||||
|
||||
Reference in New Issue
Block a user