module.exports = { describe_name: "permission/权限管理", testList : [ { test_name: "账号密码注册", fun : async (request, server) => { const response = await request(server) .post('/permission/api/registered') .send({ type: "accountPassword", data: { account : "test", password: "123456", }, }) // expect(response.status).toEqual(200) expect(response.body.status).toEqual(200) expect(response.body.data).toHaveProperty('token') } }, { test_name: "账号密码登录", fun : async (request, server) => { const response = await request(server) .post('/permission/api/login') .send({ type: "accountPassword", data: { account : "test", password: "123456", }, }) // expect(response.status).toEqual(200) expect(response.body.status).toEqual(200) expect(response.body.data).toHaveProperty('token') } }, ] }