feat(test): add jest test suite

This commit is contained in:
Vben
2021-06-17 22:56:21 +08:00
parent 154ebc3d96
commit f6fe1dd62d
33 changed files with 1898 additions and 209 deletions

View File

@@ -0,0 +1,15 @@
import UserService from '../service/UserService';
class UserController {
private service: UserService = new UserService();
login = async (ctx) => {
ctx.body = await this.service.login();
};
getUserInfoById = async (ctx) => {
ctx.body = await this.service.getUserInfoById();
};
}
export default new UserController();