优化
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
export async function run(context) {
|
||||
const module = 'replace-with-module-name'
|
||||
const response = await context.request('GET', '/api/platform/v1/replace-with-real-api')
|
||||
const data = context.apiSuccess(module, '查询模块列表', response)
|
||||
context.assert(module, '列表结构正确', response, Array.isArray(data?.records),
|
||||
`records=${data?.records?.length ?? 'n/a'}`)
|
||||
}
|
||||
Reference in New Issue
Block a user