2021年3月4日星期四

testing login api with jest

how to test this Api and get 100% score of testing coverage?

const login = async (email, password) => {    axios      .post('https://conduit.productionready.io/api/users/login', {        user: {          email,          password,        },      })      .then((response) => response);  };  
https://stackoverflow.com/questions/66476969/testing-login-api-with-jest March 04, 2021 at 10:24PM

没有评论:

发表评论