.resolves async/await 错误处理 .rejects 首先, 像 Getting Started 里面所说的那样, 启用babel的支持 Let's implement a module that fetches user data from an API and returns the user name. // user...
.resolves 仅用于jest 20.0.0+ async/await 错误处理 .rejects 仅用于jest 20.0.0+ 首先, 像 Getting Started 里面所说的那样, 启用babel的支持 Let's implement a module that fetches user data from an API a...